There are two approaches described in the above code library:
Have a global registry (an array really) that keeps control ID's and emit script for every server control that will add an item to the global registry. Then loop over all registered elements and get the one that contains the server ID.
Get all elements of a given tag name and try to find the one whose ID contains the server ID.
I used the code Library script, but it throws error as registeredElements is Undefined
0
Dimo
Telerik team
answered on 28 Dec 2009, 03:02 PM
Hello Balagangadharan,
Make sure that you have declared registeredElements as a global Javascript variable, as demonstrated in the code library example. The variable should be registered before the RadGrid control declaration.
If you still have problems, send us a complete runnable demo. Thanks.