RadAjaxManager AjaxRequest TypeError: Cannot read property 'id' of undefined

Airn5475 picture Airn5475 · Dec 6, 2012 · Viewed 8.5k times · Source

Here's the situation:
I have a host page that loads a custom web user control. In my web control I want use javascript and a RadAjaxManager to load up a second web user control. I used this example from Telerik as my guide:
http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/clientsideapi/defaultvb.aspx

However, I kept getting the following error when I would call the client-side "ajaxRequest" method on the RadAjaxManager.

TypeError: Cannot read property 'id' of undefined

Answer

Brian Ogden picture Brian Ogden · Jul 18, 2013

Another reason this error can happen is not having clientIDMode="AutoID" attribute in the <pages> element of your web.config