20 October, 2009
3 Comments
0 categories
If you use an *.ascx user control to add new rows to the Telerik RadGrid and want to use javascript dynamically loaded, you can use the Telerik “RadScriptBlock”:
<telerik:RadScriptBlock ID="radScriptBlock" runat="server"> <script language="javascript" type="text/javascript"> alert('Hello'); </script> </telerik:RadScriptBlock>
Was having problems in my UserControl that always showed the code as undefined, and had not found the solution. had sought in the Telerik forums and finding nothing, had lost more than an hour on this problem.
In short, your code solved my problem. Congratulations friend, and thank you. great contribution to the community.
Thanks I didn’t realise the real usage of RadScriptBlock.
If your user control is loaded dynamically RadScriptBlock has to be inside RadAjaxPanel