Assume a usercontrol has a manager proxy. In one case I'll use the UC on a content page under a master page, and in another case I'll use the UC on a standalone page. I want it to behave the same regardless of the container.
My basic question is, how do we ensure that the Proxy is wired to the container Manager regardless of what the container is?
When we use mgr=RadAjaxManager.GetCurrent(this.Page) , it returns a Manager, but the UC is coded to operate on it's local Proxy.
If RadControls "automatically" wires a Manager to all nested proxies, does this happen in the Render event? I just want to make sure that when I manipulate the proxy in Load or PreRender for example, that the settings are respected by the top-level manager wherever it happens to be. If this requires the UC to selectively get a handle to the Manager or the Proxy, depending on who the container is, so be it. I just need to know the rules.
In a more complex example, what if a usercontrol is nested in another UC? I would hope that the lowest-level proxy can manage it's own controls rather than having to get a reference to the container proxy so that it can wire itself up. This brings up two more questions:
If a UC is in a UC, does the nested UC need to be in a panel?
Does the container need to set a trigger for the child UC to trigger itself?
All of the docs/examples on this topic use the most basic scenarios. I've never seen anything complex or covering numerous scenarios in the same project. Is there complete flow documentation somewhere, even some internal doc at Telerik, a spec or something that Support people use to remind themselves how the product should be behaving? I think a doc like this will help everyone with questions about this to easily understand the expected behavior. I'm not looking for handouts of code samples, just a reference to complete documentation would be enough.
TIA
My basic question is, how do we ensure that the Proxy is wired to the container Manager regardless of what the container is?
When we use mgr=RadAjaxManager.GetCurrent(this.Page) , it returns a Manager, but the UC is coded to operate on it's local Proxy.
If RadControls "automatically" wires a Manager to all nested proxies, does this happen in the Render event? I just want to make sure that when I manipulate the proxy in Load or PreRender for example, that the settings are respected by the top-level manager wherever it happens to be. If this requires the UC to selectively get a handle to the Manager or the Proxy, depending on who the container is, so be it. I just need to know the rules.
In a more complex example, what if a usercontrol is nested in another UC? I would hope that the lowest-level proxy can manage it's own controls rather than having to get a reference to the container proxy so that it can wire itself up. This brings up two more questions:
If a UC is in a UC, does the nested UC need to be in a panel?
Does the container need to set a trigger for the child UC to trigger itself?
All of the docs/examples on this topic use the most basic scenarios. I've never seen anything complex or covering numerous scenarios in the same project. Is there complete flow documentation somewhere, even some internal doc at Telerik, a spec or something that Support people use to remind themselves how the product should be behaving? I think a doc like this will help everyone with questions about this to easily understand the expected behavior. I'm not looking for handouts of code samples, just a reference to complete documentation would be enough.
TIA