This is a migrated thread and some comments may be shown as answers.

[Solved] RadAjax, RadMenuToolBar and several usercontrols

1 Answer 111 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
T
Top achievements
Rank 1
T asked on 19 May 2009, 04:59 PM
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:
<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

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 25 May 2009, 07:02 AM
Hello Thomas,

Unfortunately, in such a scenario there is no straightforward option to exclude one of the user controls from the update. For such a setup, as an alternative option, you can use the standard update panel.

Kind regards,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Ajax
Asked by
T
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or