This is a migrated thread and some comments may be shown as answers.

How to find RadNumericTextBox in Edit FormTemplate in Javascript

2 Answers 115 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve Y
Top achievements
Rank 2
Steve Y asked on 22 Sep 2008, 02:34 PM
Hi. I asked a similar question earlier where wanted to be able to find the controls in c# code-behind on a postback. Although it worked, I want to compare it with doing the same work but on the client side and in javascript. Can anyone help me with the javascript code to 'find' the calling control as well as find the values from the other five controls. Here is the situation...

I have a Grid with an Edit FormTemplate which has six controls of Type RadNumericTextBox all sitting inside a table.

The grid goes into edit mode and, as each textbox has data entered into it, I need to be able to find the other five, get their values and keep a running total which I'll be displaying elsewhere on the page.

How do I extract the value from the control that has fire its OnTextChanged client side event and how do I extract the value from the other five?

Can anyone help point me in the right direction.

Thanks in advance, Steve

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 23 Sep 2008, 03:43 AM
Hi Steven,

Here is a code library submission which shows how to access server controls in a Grid template on the client side.
Accessing server controls in a grid template on the client

Thanks
Shinu.
0
Steve Y
Top achievements
Rank 2
answered on 23 Sep 2008, 08:32 AM
Thanks Shinu - that was just what I needed.
Tags
Grid
Asked by
Steve Y
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Steve Y
Top achievements
Rank 2
Share this question
or