how to get data by column's name when click a row?
how to get data by column's name when click a row?
I use the examples/grid/base.html
<script>
// create ActiveWidgets Grid javascript object
var obj = new Active.Controls.Grid;
//obj.setProperty("selection/multiple", true);
// set number of rows/columns
obj.setRowProperty("count", <ww:text name="list.size" />);
obj.setColumnProperty("count", 2);
// provide cells and headers text
obj.setDataProperty("text", function(i, j){return myData[i][j]});
obj.setColumnProperty("text", function(i){return myColumns[i]});
// set headers width/height
obj.setRowHeaderWidth("28px");
obj.setColumnHeaderHeight("20px");
// set click action handler
obj.setAction("click", function(src){window.status = src.getItemProperty("text"););
//how to set this action, to get a data by column's on clicked row?
// write grid html to the page
document.write(obj);
</script>
I use the examples/grid/base.html
<script>
// create ActiveWidgets Grid javascript object
var obj = new Active.Controls.Grid;
//obj.setProperty("selection/multiple", true);
// set number of rows/columns
obj.setRowProperty("count", <ww:text name="list.size" />);
obj.setColumnProperty("count", 2);
// provide cells and headers text
obj.setDataProperty("text", function(i, j){return myData[i][j]});
obj.setColumnProperty("text", function(i){return myColumns[i]});
// set headers width/height
obj.setRowHeaderWidth("28px");
obj.setColumnHeaderHeight("20px");
// set click action handler
obj.setAction("click", function(src){window.status = src.getItemProperty("text"););
//how to set this action, to get a data by column's on clicked row?
// write grid html to the page
document.write(obj);
</script>
Creatxr
March 21,