|
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?
|
|
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!
|
|
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?
|
|
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!
|
|
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!
|
|