Hello Telerik,
I am currently building an application using a RadAjax, RadMenuToolBar and several usercontrols. the following example describes my problem. I have a RadMenuToolBar with 2 toggle buttons where the buttons have their own group(Group1 and Group2) and 2 UserControls. When I select the first button, then the first usercontrol should be updated. Then when I click the second button, the second usercontrol must be updated, but the first usercontrol must not be updated again. how can I achieve this kind of situation with RadAjaxManager?
I could use asp.net UpdatePanel, by wrapping each usercontrol and the MenuToolBar with updatePanel. and in the RadMenuToolBar's OnButtonClick I called UpdatePanel's Update method based on the clicked button, but I prefer to use RadAjaxManager if it's possible.
below is my current code:
I'm looking forward to your reply. Thanks in advance.
Cheers,
Thomas
I am currently building an application using a RadAjax, RadMenuToolBar and several usercontrols. the following example describes my problem. I have a RadMenuToolBar with 2 toggle buttons where the buttons have their own group(Group1 and Group2) and 2 UserControls. When I select the first button, then the first usercontrol should be updated. Then when I click the second button, the second usercontrol must be updated, but the first usercontrol must not be updated again. how can I achieve this kind of situation with RadAjaxManager?
I could use asp.net UpdatePanel, by wrapping each usercontrol and the MenuToolBar with updatePanel. and in the RadMenuToolBar's OnButtonClick I called UpdatePanel's Update method based on the clicked button, but I prefer to use RadAjaxManager if it's possible.
below is my current code:
| <telerik:RadAjaxManager runat="server" ID="radAjaxManager"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="radToolBar"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="userControl1" /> |
| <telerik:AjaxUpdatedControl ControlID="userControl2" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| <telerik:RadToolBar ID="radToolBar" runat="server" OnButtonClick="RadToolBar_ButtonClick" AutoPostBack="true"> |
| <Items> |
| <telerik:RadToolBarButton runat="server" Text="firstButton" CheckOnClick="true" AllowSelfUnCheck="true" |
| Value="firstButton" Group="Group1" /> |
| <telerik:RadToolBarButton runat="server" Text="secondButton" CheckOnClick="true" AllowSelfUnCheck="true" |
| Value="secondButton" Group="Group2" /> |
| <uc1:UserControl1 runat="server" ID="userControl1"/> |
| <uc1:UserControl2 runat="server" ID="userControl2"/> |
I'm looking forward to your reply. Thanks in advance.
Cheers,
Thomas