PDA

View Full Version : Editable grid problem



nani_chinni
10 Jan 2010, 1:49 AM
Hi,

I want to do some actions on editable grid.I have used EditorGridPanel and i am able to add records dynamically. But i want to remove records and insert record where ever i want.

Example, i want to add record when the cursor exists.

If anyone knows, please let me know.

Thanks,
Chinni

MiamiCoder
12 Jan 2010, 6:19 AM
One approach: Assuming the record at the cursor is selected, find the record using SelectionModel.getSelected(), find the position of the record using store.indexOf(), and then insert new record at position using store.insert().