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

Access to FormTemplate's TextBox in Javascript

1 Answer 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
VanirDev
Top achievements
Rank 1
VanirDev asked on 16 Dec 2008, 10:05 PM
Hi,
I have a FormTemplate that I use to update my RadGrid. In there I have link to call RadWindow populated with RadGrid from where I return selected item's dataKeyValue. Upon return from the RadGrid I would like to update FormTemplate's TextBox with the return result.
The following code does not do the trick. The TextBox1 is not accessible.
function onClose(window, result)     
{     
  $get("<%= TextBox1.ClientID %>").text = result;     
}    
 
Error 4 The name 'TextBox1' does not exist in the current context

How can I get access to FormTemplate's TextBox in Javascript?

Thank you,
Pawel Mozdzen

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 17 Dec 2008, 04:18 AM
Hello Pawel,

You can go through the following code library submission which explains on how to access controls in a template in the grid.
Accessing server controls in a grid template on the client

Thanks
Princy.
Tags
Grid
Asked by
VanirDev
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or