Welcome Guest Search | Active Topics | Sign In | Register

Use Textbox as a editing UI in CustomColumn but not work Options
Texwinca Developer
Posted: Tuesday, June 30, 2009 12:38:46 AM
Rank: Advanced Member
Groups: Member

Joined: 3/31/2009
Posts: 52
I have a simple Grid just have one custom column and I use a textbox as its editing UI. In the event of ClientSideEndEdit, I return the textbox value in order to update the Grid Cell value. But after I postback (Callback), I got "Nothing" in the Cell Value. How come is it?

I would like to use Textbox instead of "TextboxColumn" because I want to set focus on this textbox when begin edit.

I have a test page for you and I will PM the URL to you. Thanks.
Texwinca Developer
Posted: Tuesday, June 30, 2009 3:32:38 AM
Rank: Advanced Member
Groups: Member

Joined: 3/31/2009
Posts: 52
I found the problem after I spent almost 5 hours to find the bugs. Finally, it is caused by a Javascript function "toFixed(2)". (XYZ#%#%@#%#$^!)

If I return a value using this function, it will return a "Nothing" cell value in server side.

for example :

function OAMT_EndEdit(gridCell,newValue)
{
var OAMT = document.getElementById("Grid1_edit_txtOAMT").value;
OAMT = eval(OAMT).toFixed(2);
return OAMT;
}
Texwinca Developer
Posted: Tuesday, June 30, 2009 3:37:11 AM
Rank: Advanced Member
Groups: Member

Joined: 3/31/2009
Posts: 52
But I have to point out that this function "toFixed" work fine in client-side. So at the beginning of trouble shoot, I don't aware it is the cause. Sorry about that postBrick wall. However, I still have so many question mark in my mind.
Texwinca Developer
Posted: Tuesday, June 30, 2009 4:52:16 AM
Rank: Advanced Member
Groups: Member

Joined: 3/31/2009
Posts: 52
I am going crazy. I should not conclude that the problem is caused by the function "toFixed". Anyway, the problem is not solved. The issue is when I input a numeric value with 4 decimal points (e.g. 154.5461), the cell value is "Nothing" after callback in server side. You could visit my test page. Thanks a lot!
eo_support
Posted: Tuesday, June 30, 2009 7:19:09 AM
Rank: Administration
Groups: Administration

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

Can you also provide the full source of the test page? That way we can run it here and it will be much easier for us to find out the root cause of the problem.

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.