PDA

View Full Version : [0.8.2] RowSelectionPaging plugin



SouthDeveloper
Jan 25, 2010, 4:18 PM
Hello,

I need help adding this plugin to ext js.

http://www.extjs.com/forum/showthread.php?t=61282

The reason is that I need on client side to get the count of selected rows using paging.

Using getCount() from CheckboxSelectionModel only returns the selection from the current page :/

THANKS

Vladimir
Jan 25, 2010, 4:27 PM
Hi,

You should not require that plugin. If you set ReaderID for the Store then grud automatically save selection across grid's pages http://examples1.ext.net/#/GridPanel/Plugins/Selection_Memory/ (http://examples1.ext.net/#/GridPanel/Plugins/Selection_Memory/%20)

SouthDeveloper
Jan 25, 2010, 4:31 PM
Hi, Vladsch!

I use the reader if to save the selection accross pages, and it works beautifully.

My problem is getting the total selected rows using paging.

getCount only returns the count selection for the current page.

Vladimir
Jan 25, 2010, 4:39 PM
Hi,


var count = 0;

for (var id in GridPanel1.selectedIds) {
count++;
}

SouthDeveloper
Jan 25, 2010, 5:17 PM
Thanks, it works fine