Rank: Advanced Member Groups: Member
Joined: 1/3/2008 Posts: 32
|
I have a grid with client side sorting enabled, with paging enabled.
each rows, primary key i have set in the following way:
Grid1.KeyField = "Employee_Id"
i have enabled the double click on the grid by using the following script:
<div ondblclick="your_handler"> <eo:Grid .....> ..... </eo:Grid> </div>
on double click i am reading the Keyfield by using the following code
var item = Grid1.getSelectedItem(); var PKeyID = item.getKey()
everything is working fine.
But when sort the grid by clicking on the grid column, its re arranging the rows, but the getKey() is returning the old value.
ie; before sorting the grid, the third rows getKey() was EMP0003, and when i sort the grid on the basis of employee name, the 3 row of first page goes to last page. But when i double click the third row on the first page, it returns the old value EMP0003 instead of the new value.
that means while sorting it is interchanging the rows as per the sort order, not the KeyField values which is hidden.
please let me know if its difficult to understand.
Saji
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi,
I believe that was fixed in the latest version. Please download the latest version and see if it works for you.
Thanks
|
Rank: Advanced Member Groups: Member
Joined: 1/3/2008 Posts: 32
|
ok thanks for quick support, i will check and let u know
|