Hello,
I'm trying to databind RadGrid control using method provided on this page:
http://www.telerik.com/help/aspnet-ajax/mvc-radgrid-databinding.html
but when I try to run it I'm getting this error:
on the line with .....DataBind();
I'm trying to databind RadGrid control using method provided on this page:
http://www.telerik.com/help/aspnet-ajax/mvc-radgrid-databinding.html
<% |
RadGrid1.DataSource = ViewData["Customers"]; |
RadGrid1.DataBind(); |
%> |
<telerik:RadGrid runat="server" ID="RadGrid1" AutoGenerateColumns="false"> |
.... |
Script controls may not be registered after PreRender. |
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. |
Exception Details: System.InvalidOperationException: Script controls may not be registered after PreRender. |