RenderControl not working properly with CallBack

This post has 2 replies

Not Ranked
Posts: 12
PTirpude Posted: Wed Aug 29, 2007 @ 10:15 PM
I am using a Callback control to take some input and apply filters on the data in my grid. The server side event handler for the call back works fine except for rendering the new data. As soon I put Grid.RenderControl(e.Output); in the code, a javascript error, which says "Undefined Runtime Error" is generated and thus stopping the AJAX call.

Somebody please tell me what's the workaround. Thanks in advance.
Top 25 Contributor
Posts: 336
sadat Posted: Thu Aug 30, 2007 @ 1:11 PM
Can you post the server-side Callback handler code?
Usually it is a good idea to test the server code without the callback to make sure its error free.
You can also set Debug="true" in the callback control to see the actual error.
Top 10 Contributor
Posts: 865
sberkovitz Posted: Fri Aug 31, 2007 @ 1:30 PM
With the grid you need to add an empty (and visible="false") grid to the page first so all the client-scripts are registered properly
Steven Berkovitz MBC Development Ltd. & OrderDynamics Corporation http://www.mbccs.com http://www.orderdynamics.com
Page 1 of 1 (3 items)