RadMultiPage + RadPageView + RadAjaxLoadingPanel .... problem

5 posts, 1 answers
  1. Ian Coetzer
    Ian Coetzer avatar
    65 posts
    Member since:
    Sep 2004

    Posted 10 Sep 2008 Link to this post

    Hi

    I'm using the tabstrip to host a multipage with two page views (all telerik)
    within these page views i have some controls all contained in a panel.

    When I click something on the page (that is not in one of these panels in the pageviews) I want to refresh the contents of the current visible panel (that is the selected tab ) using ajax and a loading panel

    I got it working, but when the ajax postback occurs both of the panel contents needs to be refreshed because one does not know which one of the two is currently visible (selected tab) this causes the loading panel for both of them to appear with one of the loading panels all the way to the left of the web page because it cannot draw itself on the hidden panel in the pageview which does not currently have 'focus'

    any ideas?
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 10 Sep 2008 Link to this post

    Hi Ian Coetzer,

    You can determine on the server side which panel to update and add AjaxSetting just for that control.

    Regards,
    Albert
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Ian Coetzer
    Ian Coetzer avatar
    65 posts
    Member since:
    Sep 2004

    Posted 11 Sep 2008 Link to this post

    Hi

    How do I do this?
    I use a RadAjaxManagerProxy which I set up at design time like this:

    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="panelUserList">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="panelUserList" /> 
                    <telerik:AjaxUpdatedControl ControlID="panelRoleList" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    <telerik:AjaxUpdatedControl ControlID="panelSupplierMasterUser" LoadingPanelID="RadAjaxLoadingPanel2" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="panelRoleList">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="panelRoleList" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="panelSupplierMasterUser">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="panelSupplierMasterUser" LoadingPanelID="RadAjaxLoadingPanel2" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManagerProxy> 

    Should I do something like this??

        Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load  
            If (Not IsPostBack) Then 
                Me.RadMultiPage1.PageViews(0).Selected = True 
            Else 
                Select Case Me.RadMultiPage1.SelectedIndex  
                    Case 0  
                        'what should I do here?  
                    Case 1  
                        'what should I do here?  
                End Select 
            End If 
        End Sub 
  4. Answer
    Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 11 Sep 2008 Link to this post

    Hi Ian Coetzer,

    I was mislead that you were using asp.net panel controls instead of pageviews. If you use pageviews I would suggest you update the whole RadMultiPage control.

    Regards,
    Albert
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Felipe Saldana
    Felipe Saldana avatar
    62 posts
    Member since:
    Jan 2009

    Posted 04 Feb 2009 Link to this post

    I have ran across this same scenario.


    What does it mean to "update the whole RadMultiPage control" as suggested?
Back to Top