PDA

View Full Version : Re order grid row numbers after adding dynamic columns to grid



abhayshukla
27 Mar 2014, 4:11 AM
Hi,
I am adding dynamic rows to the grid.

I am facing issue while adding row at specific location like i have 5 rows in grid and adding new row at position 3, so there will be twp rows with this row number 3.

Any suggestions?

Thanks

Zinnia
27 Mar 2014, 6:12 AM
You can use the below method to insert a new record in particular position. Hope this may help you

grid.getStore().insert(3, record)

abhayshukla
27 Mar 2014, 6:34 AM
My problem is duplicate row number, not the insertion of record. If i am inserting record

Record1
Record2
>> Here i am adding new record**
Record3
Record4 so if new row will be added with same row number as 3, and it will be duplicate as there is already a record with row number 3.