Selection and edit
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.
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
January 28,