Welcome Guest Search | Active Topics | Sign In | Register

Can't getValue at ClientSideAfterEditItem event Options
Texwinca Developer
Posted: Tuesday, June 23, 2009 11:56:04 PM
Rank: Advanced Member
Groups: Member

Joined: 3/31/2009
Posts: 52
I have created a Grid object in a page. This grid contains a custom column which has a dropdownlist inside it. When the ClientSideEndEdit event trigger, I set the value. Everything is fine at this moment. However, when I try to retreive the value at Grid.ClientSideAfterEditItem event, the value I just edited in ClientSideEndEdit event which is null. What should I do in this suitation?
eo_support
Posted: Wednesday, June 24, 2009 9:25:55 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You should return the new value from your ClientSideEndEdit handler, not set the value. Once your handler returns, the Grid takes the return value and set the Grid cell's value to the value returned. So even if you set the value inside your handler, as soon as your handler is returned, it will be set again. If your handler does not return a value, it will be set to null.

Thanks!
Texwinca Developer
Posted: Wednesday, June 24, 2009 9:55:29 PM
Rank: Advanced Member
Groups: Member

Joined: 3/31/2009
Posts: 52
OK. I follow your instruction but get strange result. In my grid, I have totally 4 columns. 2 of 4 columns ClientSideEndEdit event are point to 2 different client-side function. Let say "Col1_EndEdit" & "Col2_EndEdit". As I know, when ClientSideEndEdit event fire, it pass a cell object to the client-side function as a parameter. However, when I try to get the Column Header Text.

e.g. cell.getColumn().getHeaderText()

It return a wrong column header text. In this case,both clients-side function only return the last column header text. Is it caused by the grid FullRowMode property is set to TRUE?
eo_support
Posted: Thursday, June 25, 2009 9:28:52 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We have confirmed this to be a bug. We will fix it and post an update build as soon as possible.

Thanks!
eo_support
Posted: Friday, June 26, 2009 12:01:39 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We have posted a new build that fixed this issue. Please see your private message for download location.

Thanks!


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.