:: Forum >> Version 2 >>

Pre-select a subset of rows

Hi all,

I'm using javascript to populate and I need to pre-select a subset of rows. I know the values that I have to pre-select but I don't know their position because I'm using sort().

So, I guess I have to find the index of each value that I need to pre-select and put them all in the selected array. Is this correct?

Can anyone give me a clue about how to do it?

Thanks in advance.
Friday, March 23, 2007
Yes, you have to use setSelectedRows([..]) method. The argument is an array of row indices which you want to select. The row index refers to the data source and not to the display position, so it does not change with sorting.
Alex (ActiveWidgets)
Friday, March 23, 2007
OK, thanks a lot
Marc Font
Friday, March 23, 2007
Sorry Alex,

I'm using 1.0 because I'm just updating an old webapp. setSelectedRows([..]) doesn't exist in 1.0. Instead there is setSelectionProperty("index",pos); but "pos" can only be one index. Is there any method in 1.0 to select more than one index?

Cheers,
Marc
Marc Font
Friday, March 23, 2007
I've alredy found it: setSelectionProperty("values",[..])

Cheers,
Marc.
Marc Font
Friday, March 23, 2007



This topic is archived.

Back to support forum

Forum search