I've been continuing on working on creating my page that uses dynamically created docks.
Issues I've run into:
1. I tried making it so I can create a dock dynamically by clicking a button. This works, but if I try to "Ajaxify" the process with adding a RadAjaxManager (Prometheus) then odd things happen. I set the firing control to the button and the target to the RadDockLayout control. I click the button and a dock shows up as expected, but it is frozen, can't be moved, and none of the command buttons work. There is a javascript error on the page and I can post that later if need be.
2. If I don't hook up a RadAjaxManager, then my button causes a postback and the dock is created and I can move it around and it is fully functional, so that is good. The problem lies in that inside the dock I have a user control. If I leave the dock where it is initially created, then I can click the buttons in my user control and they work as expected. If I move the dock, once moved, the buttons in my user control cease to work. It's as if moving the dock causes the buttons to not postback or something.
3. I have tried to "Ajaxify" the user control in the dock. I tried a few methods. One try I use an RadAjaxManager in the main page and when I dynamically create the control and stick it in the dock I also set the AjaxSettings in code using FindControl on my user control in order to get the items. If i do this, I get a message popping up saying the button in user control could not be found in the update panel. Since this didn't seem to work how I wanted, I tried a different approach and inside my user control I just wrapped the whole thing in a RadAjaxPanel. This didn't throw any errors, but it also didn't convert any of the postback events into callbacks. I could see my browser reloading the page on each click.
4. Finally, if I don't try to Ajaxify anyhing and use only postbacks, everything seems to work (except the issue in 2) but another odd thing happens. I click a button and a dock is created with my user control inside it. I then click a button on my user control and a postback seems to occur, but it appears the desired effect of the button click doesn't occur. If I click it again, then it works as expected. For some reason the first click seems to get "eaten." After that first click, all subsequent clicks (on any control) work without issue.
Issues I've run into:
1. I tried making it so I can create a dock dynamically by clicking a button. This works, but if I try to "Ajaxify" the process with adding a RadAjaxManager (Prometheus) then odd things happen. I set the firing control to the button and the target to the RadDockLayout control. I click the button and a dock shows up as expected, but it is frozen, can't be moved, and none of the command buttons work. There is a javascript error on the page and I can post that later if need be.
2. If I don't hook up a RadAjaxManager, then my button causes a postback and the dock is created and I can move it around and it is fully functional, so that is good. The problem lies in that inside the dock I have a user control. If I leave the dock where it is initially created, then I can click the buttons in my user control and they work as expected. If I move the dock, once moved, the buttons in my user control cease to work. It's as if moving the dock causes the buttons to not postback or something.
3. I have tried to "Ajaxify" the user control in the dock. I tried a few methods. One try I use an RadAjaxManager in the main page and when I dynamically create the control and stick it in the dock I also set the AjaxSettings in code using FindControl on my user control in order to get the items. If i do this, I get a message popping up saying the button in user control could not be found in the update panel. Since this didn't seem to work how I wanted, I tried a different approach and inside my user control I just wrapped the whole thing in a RadAjaxPanel. This didn't throw any errors, but it also didn't convert any of the postback events into callbacks. I could see my browser reloading the page on each click.
4. Finally, if I don't try to Ajaxify anyhing and use only postbacks, everything seems to work (except the issue in 2) but another odd thing happens. I click a button and a dock is created with my user control inside it. I then click a button on my user control and a postback seems to occur, but it appears the desired effect of the button click doesn't occur. If I click it again, then it works as expected. For some reason the first click seems to get "eaten." After that first click, all subsequent clicks (on any control) work without issue.