Welcome Guest Search | Active Topics | Sign In | Register

Grid KeyField not interchanging the values in client side sorting Options
Saji
Posted: Tuesday, July 8, 2008 8:04:17 AM
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
eo_support
Posted: Tuesday, July 8, 2008 8:07:55 AM
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
Saji
Posted: Tuesday, July 8, 2008 8:16:11 AM
Rank: Advanced Member
Groups: Member

Joined: 1/3/2008
Posts: 32
ok thanks for quick support, i will check and let u know


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.