Welcome Guest Search | Active Topics | Sign In | Register

TextBoxColumn / ClientSideEndEdit Problem Options
nomo
Posted: Saturday, August 22, 2009 9:06:48 AM
Rank: Member
Groups: Member

Joined: 4/6/2008
Posts: 11
I need to pass the entered value of a TextBoxColumn to be validated by a javascript and send the resulting value back to the grid to be saved. I understand I should use the ClientSideEndEdit to run the script but I haven't found a way to send the textbox value to the script. If I should use the ClientId, I don't know how to use it.

This is the code for the column inside the grid.

Code: Visual Basic.NET
<eo:TextBoxColumn Name="PUNCH_IN1" Width="55" HeaderText="<%$ Resources:AppStrings, TC_In %>" DataField="PUNCH_IN1"  ClientSideEndEdit="VerifyPunchesFormat" DataType="Auto"></eo:TextBoxColumn>


Is there any place where I can find a code example for this?

Thanks in advance.

nomo
Posted: Saturday, August 22, 2009 9:08:30 AM
Rank: Member
Groups: Member

Joined: 4/6/2008
Posts: 11
Here's the column code that's not visible in the previous post.

<eo:TextBoxColumn Name="PUNCH_IN1" Width="55" HeaderText="<%$ Resources:AppStrings, TC_In %>" DataField="PUNCH_IN1" ClientSideEndEdit="VerifyPunchesFormat" DataType="Auto"></eo:TextBoxColumn>
eo_support
Posted: Saturday, August 22, 2009 10:12:41 AM
Rank: Administration
Groups: Administration

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

Yes. You can find more information and sample code here:

http://doc.essentialobjects.com/library/1/jsdoc.public.handlers.grid_column_endedit.aspx

Thanks!
nomo
Posted: Saturday, August 22, 2009 10:44:14 AM
Rank: Member
Groups: Member

Joined: 4/6/2008
Posts: 11
I can't figure it out. In example what I need is the "code to retrieve and return the new value" and that's not included. I need to catch the value entered in the textbox.

[JavaScript] function on_endedit(cell, newValue)
{
//returns the original value if user choose
//not to save the change
if (!window.confirm("Save changes?"))
return cell.getValue();

//code to retrieve and return the new value
.....
}
nomo
Posted: Saturday, August 22, 2009 11:24:53 AM
Rank: Member
Groups: Member

Joined: 4/6/2008
Posts: 11
I solved it. Thanks!
Angel


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.