I have a few telerik calendar controls on an ascx control along with other regular objects such as text boxes etc....
I needed to set the Id of the control so I added the following code to my code-behind:
After I did this, built the website and loaded the page I noticed that my telerik calendar controls were no longer working and I saw a JavaScript error was being thrown saying "Uncaught SyntaxError: Unexpected identifier" and then when I go to the line its referencing the error is occuring on the line that does: Sys.Application.add_init(function().
When I comment out my Page_Init method the Telerik controls work just fine.
How can I implement my Page_Init method without breaking Telerik?
Thanks!
I needed to set the Id of the control so I added the following code to my code-behind:
protected
void
Page_Init(
object
sender, EventArgs e)
{
this
.ID =
"MyFormId"
;
}
After I did this, built the website and loaded the page I noticed that my telerik calendar controls were no longer working and I saw a JavaScript error was being thrown saying "Uncaught SyntaxError: Unexpected identifier" and then when I go to the line its referencing the error is occuring on the line that does: Sys.Application.add_init(function().
When I comment out my Page_Init method the Telerik controls work just fine.
How can I implement my Page_Init method without breaking Telerik?
Thanks!