Yes, it's time for another dumb questions from yours truly.
I'm often surprised by how many times I find myself doing something for the first time, even though I've been doing this kind of work for a while now. Anyhow, here's the thing. I have a page with code on it that includes this ...
The constructor of the object being created includes code to attach a couple of client-side event handlers and it all works fine. Until, that is, my page does an Ajax callback. At this point my handlers stop working.
Now, I've found a workaround but I'm unsure if it is the right work around. I've added RadScriptBlock1 in to the set of updated controls in the AjaxManager.
What should I be doing?
--
Stuart
I'm often surprised by how many times I find myself doing something for the first time, even though I've been doing this kind of work for a while now. Anyhow, here's the thing. I have a page with code on it that includes this ...
<telerik:RadScriptBlock runat="server" ID="RadScriptBlock1" > <script type="text/javascript"> $(document).ready(function () { var addEditEventDialog = new CalendarAddEditEventObject(); }); </script></telerik:RadScriptBlock>The constructor of the object being created includes code to attach a couple of client-side event handlers and it all works fine. Until, that is, my page does an Ajax callback. At this point my handlers stop working.
Now, I've found a workaround but I'm unsure if it is the right work around. I've added RadScriptBlock1 in to the set of updated controls in the AjaxManager.
What should I be doing?
--
Stuart