I have a page with a relatively conventional RadTabStrip/RadMultipage/RadPageView set up. I also have a RadAjaxManager setup so that for certain values of a RadComboBox in the first RadPageView (the first tab), a second tab becomes visible. So far, so good.
Up till now I've had three ASCXs in the second RadPageView and I've manipulated them through Ajax so that they're visible when needed.
What I would like to do (given that the number of ASCXs may increase) is dynamically load them instead.
For my load I'm doing the following:
Control1 = (ControlType1)this.LoadControl("Control1.ascx");
Then I do a
Panel1.Controls.Add(Control1);
I've tried a number of variations including putting the control in an ASP:Panel in the 2nd RadPageView. Display is not a problem but when it comes time to save, the Find for the control always returns null.
What would be the best approach for a situation like this?
Up till now I've had three ASCXs in the second RadPageView and I've manipulated them through Ajax so that they're visible when needed.
What I would like to do (given that the number of ASCXs may increase) is dynamically load them instead.
For my load I'm doing the following:
Control1 = (ControlType1)this.LoadControl("Control1.ascx");
Then I do a
Panel1.Controls.Add(Control1);
I've tried a number of variations including putting the control in an ASP:Panel in the 2nd RadPageView. Display is not a problem but when it comes time to save, the Find for the control always returns null.
What would be the best approach for a situation like this?