|
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.
|
|
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>
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
|
|
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 ..... }
|
|
Rank: Member Groups: Member
Joined: 4/6/2008 Posts: 11
|
I solved it. Thanks!
|
|