-
6 Mar 2013 1:54 PM #1
Keep rows selected in GridPanel
Keep rows selected in GridPanel
Hi
I'm working with extjs 3.4, using a gridpanel with paging for show my results, each row have a checkbox for select the rows to export, but when i change of page my rows selected are lost.
how i can keep the rows selected in each page.
my grid is defined
thanksPHP Code:
var headers=[
{header: "Record", width: 100,renderer:renderTexto, dataIndex: "record", menuDisabled: true},
{header: "Dir", width: 150,renderer:renderDomicilio, dataIndex: "dir", menuDisabled: true}
];
grid = ext.grid.GridPanel("gridResultados",{columsHeader:headers,
loadMask: true,
maskDisabled: false,
width:670,height:280,pageSize:2,showCheckBox: 25,tbar:['->',{ text:"Delete...",
iconCls:"x-btn-remove",
tooltip:"Delet Rows Selected",
handler:deleteRegs },{ id:"boton", text:"Export", tooltip:"Export rows", hidden:cade, iconCls:"x-btn-export", handler:exportReg }]});
-
8 Mar 2013 7:23 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
Moved to Ext JS 3 Help forum (was in Ext JS 4 Discussion forum)
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
8 Mar 2013 7:40 AM #3
How are you currently checking the rows?
Are you using the checkboxSelectionModel, or your own solution?
If using the checkboxSelectionModel, then you could simply add some listeners to your grid's store to find out what rows (if any) are selected on beforeload, then reselect these same rows inside your load listener.


Reply With Quote