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

How to get Control Value in EditFormTemplate in client side

3 Answers 94 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dibyendu
Top achievements
Rank 1
Dibyendu asked on 17 Dec 2008, 02:00 PM

Hi,
I am using the RadGrid and use the EditFormTemplate for Add New Entry and update. Here we have two textbox and one label.  But my problem is -  I want to compute the total of two textbox in label in lost focus of any one of textbox from client side.

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 17 Dec 2008, 02:52 PM
Hello,

You can go through the following code library submision which explains on how to access the controls in a template in the grid. You can modify the code for accessing controls in the EditFormTemplate.
Accessing server controls in a grid template on the client

Thanks
Princy.
0
Dibyendu
Top achievements
Rank 1
answered on 18 Dec 2008, 01:04 PM
Hello Princy
Thanks for you suggestion. It's working perfectly.

0
Dibyendu
Top achievements
Rank 1
answered on 22 Dec 2008, 02:20 PM
Hi Princy,
It is working perfectly but when we enabled AJAX then it is not working. Is there any thing need in following for AJAX
<script type="text/javascript">
registeredElements.push('<%# Container.FindControl("txt_OrgPlan").ClientID %>');
</script> 
So please give me the solution.
Tags
Grid
Asked by
Dibyendu
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Dibyendu
Top achievements
Rank 1
Share this question
or