Hi,
I have this scenario:
Two controls (say controlA and controlB), both contain some RadButtons. If a click occurs in controlA, it should update controlB and vice versa. But only case 1 works, case 2 doesn't work correctly.
This is my code:
The second case only works after one click, e.g. the second, third, ... click works correctly and the loading panel will be displayed.
Both controls don't have any conditional controls, all buttons are added in CreateChildControl. EnsureChildControls is called in OnLoad of both controls.
Which of the controls might be erroneous in this case? The control which does the trigger or the control which is updated?
I have this scenario:
Two controls (say controlA and controlB), both contain some RadButtons. If a click occurs in controlA, it should update controlB and vice versa. But only case 1 works, case 2 doesn't work correctly.
This is my code:
protected
override
void
OnPreRender(EventArgs e)
{
base
.OnPreRender(e);
RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);
manager.AjaxSettings.AddAjaxSetting(controlA, controlB, loadingPanel);
manager.AjaxSettings.AddAjaxSetting(controlB, controlA, loadingPanel);
}
The second case only works after one click, e.g. the second, third, ... click works correctly and the loading panel will be displayed.
Both controls don't have any conditional controls, all buttons are added in CreateChildControl. EnsureChildControls is called in OnLoad of both controls.
Which of the controls might be erroneous in this case? The control which does the trigger or the control which is updated?