3.2.0

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.
March 23,
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)
March 23,
OK, thanks a lot
Marc Font
March 23,
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
March 23,
I've alredy found it: setSelectionProperty("values",[..])

Cheers,
Marc.
Marc Font
March 23,

This topic is archived.

See also:


Back to support forum