Hi Maria!
I'm trying to add a usercontrol programatically to a panel (multiple times). It works fine as long as i "ajax" the treeview where controls are selected with the panel where they are added.
The problem is not the functionality, but speed!
I analyzed server responses and every time i add (or remove) a usercontrol, the whole panel is updated. This makes this update very very slow.
So i tried a different approach. I tried to put the AjaxSettings.AddAjaxSetting method inside the for-next cycle that load the controls and ajax the same treeview control with every usercontrol that is created. For example:
But this doesn't work :(
Instead removing addajaxsetting inside block and putting it outside in this mode works:
RadAjaxManager1.AjaxSettings.AddAjaxSetting(pema, Panel1,
Nothing)
The problem with this mode is the slowness!
Any help?