ASP.NET 2.0 application
I am creating a custom image button control that will be used for a help system within our application. I wish to use the RadWindow to display our help text in a modal, sized window that is not pop-up-blocked. The idea is that this custom control can be used by myself and other developers in our applications in a simple process of add the control to the page, set the properties, done.
There is no guarantee that the page that this custom control is added to will contain a RadWindowManager, but it may. I have code to loop through the page's controls, in a recursive manner, in order to locate the RadWindowManager if it exists. If one does not exist, I create one and add it to the page's controls collection...oh, wait...this throws an exception about not being able to modify the controls collection during a certain event.
I attempted to add the RadwindowManager to the controls collection of my image button and that did not cause an error, but radOpen does not work because GetRadWindowManager can't find the RadWindowManager. When I view the source of my page, the RadWindowManager that I added to the controls collection of my image button is not there.
Is there another way to add the RadWindowManager to the page's controls collection so it can be used? Can I create the radwindow on the client and then open it via javascript?
Thanks,
Sean M. Severson
I am creating a custom image button control that will be used for a help system within our application. I wish to use the RadWindow to display our help text in a modal, sized window that is not pop-up-blocked. The idea is that this custom control can be used by myself and other developers in our applications in a simple process of add the control to the page, set the properties, done.
There is no guarantee that the page that this custom control is added to will contain a RadWindowManager, but it may. I have code to loop through the page's controls, in a recursive manner, in order to locate the RadWindowManager if it exists. If one does not exist, I create one and add it to the page's controls collection...oh, wait...this throws an exception about not being able to modify the controls collection during a certain event.
I attempted to add the RadwindowManager to the controls collection of my image button and that did not cause an error, but radOpen does not work because GetRadWindowManager can't find the RadWindowManager. When I view the source of my page, the RadWindowManager that I added to the controls collection of my image button is not there.
Is there another way to add the RadWindowManager to the page's controls collection so it can be used? Can I create the radwindow on the client and then open it via javascript?
Thanks,
Sean M. Severson