3.2.0

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.
Acacio
January 28,
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
August 5,
I'm in need of a similar situation:
i'd like to have the multy row marker selection mode, with the possibilty of editing single cells.
Fily84
September 26,

This topic is archived.

See also:


Back to support forum