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

RadMultiPage + RadPageView + RadAjaxLoadingPanel .... problem

4 Answers 316 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Ian Coetzer
Top achievements
Rank 2
Ian Coetzer asked on 10 Sep 2008, 02:59 PM
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?

4 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 10 Sep 2008, 03:23 PM
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.
0
Ian Coetzer
Top achievements
Rank 2
answered on 11 Sep 2008, 07:09 AM
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 
0
Accepted
Atanas Korchev
Telerik team
answered on 11 Sep 2008, 07:48 AM
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.
0
Felipe Saldana
Top achievements
Rank 1
answered on 04 Feb 2009, 09:27 PM
I have ran across this same scenario.


What does it mean to "update the whole RadMultiPage control" as suggested?
Tags
TabStrip
Asked by
Ian Coetzer
Top achievements
Rank 2
Answers by
Atanas Korchev
Telerik team
Ian Coetzer
Top achievements
Rank 2
Felipe Saldana
Top achievements
Rank 1
Share this question
or