:: Forum >> Version 1 >>

Selection and edit

More information on this topic is available in the documentation section: /grid.howto.selections/selecting-rows-with-checkboxes.html.

Hi!

Could I have selectors and edit cells at the same time ?

I'm using this:

<script>
var table = new AW.CSV.Table;
table.setURL("test.csv");
table.request();
var obj = new AW.UI.Grid;
obj.setId("myGrid");
var columns = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L"];
obj.setHeaderText(columns);
obj.setColumnCount(12);
var str = new AW.Formats.String;
obj.setCellFormat([str, str, str, str, str, str, str, str, str, str, str, str]);
obj.setSelectorText(function(i){return this.getRowPosition(i)+1});
obj.setCellEditable(true);
obj.setCellModel(table);
obj.setSelectionMode("multi-row-marker");
document.write(obj);
</script>

I'd like to edit some information in the rows (example: column B) and select a diferent row and delete it.
When I put "obj.setSelectionMode("multi-row-marker")" I can't edit any information. But if I remove it, I can edit all information as I want.
So, could use both properties simultaneously ?

Thanks.
Acacio
Monday, January 28, 2008
How can I catch a value of a line and column, for simply to give display? When navigating for the grid, I want to show the values of each line and column in fields of output text.

Thanks.
Lourival Queiroz
Tuesday, August 5, 2008

Post a reply:

Text:
Name:

Back to /grid.howto.selections/selecting-rows-with-checkboxes.html

Documentation:

Forum search