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

share data among panels before refreshing

1 Answer 32 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Renzo
Top achievements
Rank 1
Renzo asked on 13 Apr 2010, 09:37 AM
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







1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 15 Apr 2010, 12:56 PM
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.
Tags
Sharepoint Integration
Asked by
Renzo
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or