3.2.0

Automatic Row Selection Question

I have a large dataset (10,000 rows) with paging at 50 rows pre page. So, I'm trying to select ALL rows on ALL pages. I tried some code I found in the forum first.

var all = obj.getProperty("row/values");
obj.setProperty("selection/values", all);


Which doesn't work because it only selects the rows on the first page. (obj.getProperty("row/values") only returns the rows on the current page.)

When change my code to this, it selects ALL rows from ALL pages! However, this method is SLOW for large datasets (50 seconds or more.)

var all = [1,2,3,4,5,6,7,8,9,10]; // I already know the indexes...
obj.setProperty("selection/values", all);


So, when change my code to this, it selects ALL rows from ALL pages, but the rows aren't painted as selected! The good news is that this method is FAST for large datasets (less than one second.)

var all = '1,2,3,4,5,6,7,8,9,10'; // csv string instead of an array
obj.setProperty("selection/values", all);


What's the difference?
Why does one paint the selections and the other doesn't?
Why does painting a selection take so flippin' long?
Help!
Pete
November 30,
Bump...
Pete
December 7,
I don't know the answers to your question Pete, but have you tried this in v2... (from quickref/grid.htm)

obj.setSelectedColumns([1, 2]);
    obj.setSelectedRows([1, 2, 3]);
Michel
December 7,
No I haven't...

I'm using Version 1. (I keep forgetting to add that to the form when I post.)

Thanks!
Pete
December 7,

This topic is archived.

See also:


Back to support forum