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

Strange javascript error

1 Answer 11 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 24 May 2012, 02:42 PM
I have a radgrid on my page like in a  dozen or more places in my various apps, however with this grid whenver i refresh the page i get  a javascript error in the implementation of $get.  Specifically on the document.getElementById line, i looked at the value of id and it was set to modalDivId_dgNoCall   dgNoCall is my grid name, but i cant figure out what that is or why its trying to find it.  If someone could let me know what that id is for, i've looked in the source, the rendered page, and in the dynamic page in the VS2010 debugger.  The call stack is just a bunch of anonymous javascript functions.

John

1 Answer, 1 is accepted

Sort by
0
Antonio Stoilkov
Telerik team
answered on 29 May 2012, 06:47 AM
Hi John,

The server ID of the control should be dgNoCall the modalDivId extension is naming container prefix and is not part of the server ID property only from the ClientID. $get function is from the ASP.NET AJAX client-side framework. You could take a look at your code and where do you call this function and remove it from your definition it its not needed. Note that you could search for control with ID of dgNoCall.

Kind regards,
Antonio Stoilkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Antonio Stoilkov
Telerik team
Share this question
or