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.
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.)
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.)
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!
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,