how to select a row in a grid which visualizes xml data
has no effect.
But I can select a row when I use an array as data container instead of xml data.
So, is there another command beside 'setSelectedRows' you have to use when you have xml data as cell data?
Tuesday, September 12, 2006
No, it should work exactly the same way regardless of the data source.
Wednesday, September 13, 2006
sorry, but it does not work as you said.
Try this one:
var tablesrc = new AW.XML.Table;
var obj = new AW.UI.Grid;
No row gets selected.
The only result you achieve by using 'setSelectedRows': the first row disappeares. That means, there is a new blank row instead of the first data row.
the xml file to use:
<?xml version="1.0" encoding="UTF-8" ?>
Thursday, September 14, 2006
You must change the selection-mode to single-row to get the selection visible.
obj.setSelectionMode("single-row"); I don't know why all rows before the current row disappears but you can prevent this by setting the current row to -1.