We have an MVC 3 application where we needed to use the Rad Scheduler. We basically render out the control and stick it into a view. This is working fine.
However now we have a situation where we need to render the scheduler to a modal popup. Basically in the modal we do an ajax GET request which grabs the rendered control and sets the innerHTML of the modal to the ajax response.
After setting the innerHTML all of the scheduler markup seems to be there including script tags and viewstate. The calendar is rendered in the modal, looks great. However it doesn't do anything. Click events aren't working, cant change months, etc.
My guess is that there are some DOM events or something that allow the calendar to work from the full page load but not from the ajax call. I haven't figured it out exactly. But my question is, is there some way to ajax load the control and then from the clients side trigger some code that causes the scheduler to run all of its javascript (or do whatever it needs to do) and start working?
I realize this was not the intended use of the control but any suggestions would be greatly appreciated!
However now we have a situation where we need to render the scheduler to a modal popup. Basically in the modal we do an ajax GET request which grabs the rendered control and sets the innerHTML of the modal to the ajax response.
After setting the innerHTML all of the scheduler markup seems to be there including script tags and viewstate. The calendar is rendered in the modal, looks great. However it doesn't do anything. Click events aren't working, cant change months, etc.
My guess is that there are some DOM events or something that allow the calendar to work from the full page load but not from the ajax call. I haven't figured it out exactly. But my question is, is there some way to ajax load the control and then from the clients side trigger some code that causes the scheduler to run all of its javascript (or do whatever it needs to do) and start working?
I realize this was not the intended use of the control but any suggestions would be greatly appreciated!