share data among panels before refreshing

2 posts, 0 answers
  1. Renzo
    Renzo avatar
    2 posts
    Member since:
    Apr 2010

    Posted 13 Apr 2010 Link to this post

    Hi everybody,
    I'm testing Telerik controls in order to use them in a wss/moss custom application. I need help passing data between different Panels.

    My final goal is to make refreshing different web parts when i click on a control on a single web part passing some data to the other web parts before they render again.

    I designed my app with 2 panel: a menu area and a content area.
    The idea was to customize the master page where I put:

    • 1 asp:ScriptManager
    • 1 telerik:RadAjaxManager
        <asp:ScriptManager runat="server" ID="ScriptManagerMain" /> 
         <telerik:RadAjaxManager ID="RadAjaxManagerMain" runat="server"
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="CustomPanelMenu"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxLoadingPanelMain"></telerik:AjaxUpdatedControl> 
                        <telerik:AjaxUpdatedControl ControlID="CustomPanelMain"  /> 
                     </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="CustomPanelMain"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxLoadingPanelMain"/> 
                        <telerik:AjaxUpdatedControl ControlID="CustomPanelMenu" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
     


    • 1 asp:Panel to be used for menu purposes
                    <asp:Panel ID="CustomPanelMenu" runat="server"
                        <WebParts:TestMenu001 runat="server" ID="TestMenu001_1" Title="MenuSx" __MarkupType="vsattributemarkup" __WebPartId="{0ce525f0-089d-4f57-902a-78d4b87b34b9}" WebPart="true" __designer:IsClosed="false" /> 
                  </asp:Panel> 
     



    • 1 asp:Panel where I put the standard moss content placeholder "PlaceHolderMain" for main content web parts
    • 1 telerik:RadAjaxLoadingPanel to make the application more interactive
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanelMain" runat="server"/> 
     
    <asp:Panel ID="CustomPanelMain" runat="server"
        <asp:ContentPlaceHolder id="PlaceHolderMain" runat="server"
        </asp:ContentPlaceHolder> 
    </asp:Panel> 
     

    As you can see in the first code block, I configured the RadAjaxManager in order to update the panels.
    I had to pass data between the web part I will put in the panels:
    For example: when I click on a control in the web part put in the menu panel I want the web part put in the CustomPanelMain will refresh with the id I chose.

    I try to put data in the Page.Session, but I tested that the refresh on the main web part will start before the data is written in the menu web part.
    What am I wronging? What do you suggest to do that?

    Many thanks,
    RF







  2. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 15 Apr 2010 Link to this post

    Hi Renzo,

    Try the following settings for the RadAjaxManager control:
    <telerik:RadAjaxManager ID="RadAjaxManagerMain" runat="server">  
         <AjaxSettings>  
             <telerik:AjaxSetting AjaxControlID="CustomPanelMenu">  
                 <UpdatedControls>  
                     <telerik:AjaxUpdatedControl ControlID="CustomPanelMenu"/>
                     <telerik:AjaxUpdatedControl ControlID="CustomPanelMain"  />  
                  </UpdatedControls>  
             </telerik:AjaxSetting>  
             <telerik:AjaxSetting AjaxControlID="CustomPanelMain">  
                 <UpdatedControls>  
                     <telerik:AjaxUpdatedControl ControlID="CustomPanelMain"/>  
                     <telerik:AjaxUpdatedControl ControlID="CustomPanelMenu" />  
                 </UpdatedControls>  
             </telerik:AjaxSetting>  
         </AjaxSettings>  
     </telerik:RadAjaxManager>  

    Hope it helps.

    Regards,
    Tsvetoslav
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.

Back to Top