PDA

View Full Version : select required rows of checkbox selection model



Sejal
24 Feb 2010, 2:42 AM
Hi,

I am using checkbox selection model. When grid is loaded i wanted to get selected required rows of checkbox selection model & here is my code:


var liftArr = new Array();
liftArr[0] = 9;
liftArr[1] = 10;
Ext.getCmp('lift_brand').getSelectionModel().selectRows(liftArr);

Even if am using selectFirstRow()/selectLastRow()/selectAll()/selectRow(9) it works at 1st time but when i refreshes my browser it doesn't works at 2nd time & again works at 3rd time.
why this is happening so? Any issues with my browser or extjs library?
Waiting for help. :)

Thanks,
Sejal

Premakumari
18 Oct 2011, 11:36 PM
Which version u r working in 3.0 or 4,0