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

LoadingPanel on TabStrip

2 Answers 45 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 16 Feb 2011, 04:15 PM

Hi,

I have 3 tabs.  The first 2 tabs take user input, and the final third tab displays a calcution according to the previous 2 tabs' data.  I am using the OnTabClick event to check which tab the user has clicked, and if it happens to be the third then we process the users input and display the final calculation (this takes a bit of time since we are hitting the database).  The tab strip is ajaxified and displays my LoadingPanel when the OnTabClick event is fired.  It works great but the only issue is that the LoadingPanel also displays for the other tab clicks, where no data is needed to be calculated.  Is there a way to only display the LoadingPanel for a specific TabClick instead of all tabs where some are not needed to perform calculations but others are?

My ajax manager proxy is setup as such (which causes all tabs to display the LoadingPanel):

<rad:RadAjaxManagerProxy runat="server">
    <AjaxSettings>
        <rad:AjaxSetting AjaxControlID="UniverseTab">
            <UpdatedControls >
                <rad:AjaxUpdatedControl ControlID="UniverseTab" />
                <rad:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="LoadingPanel" />
            </UpdatedControls>
        </rad:AjaxSetting>
    </AjaxSettings>
    <AjaxSettings>
        <rad:AjaxSetting AjaxControlID="RadMultiPage1">
            <UpdatedControls>
                <rad:AjaxUpdatedControl ControlID="RadMultiPage1" />
            </UpdatedControls>
        </rad:AjaxSetting>
    </AjaxSettings>
</rad:RadAjaxManagerProxy>

Thanks,
Patrick

2 Answers, 1 is accepted

Sort by
0
Helen
Telerik team
answered on 18 Feb 2011, 12:34 PM
Hello Patrick,

You may try to set the AutoPostBack property to false for Tab1 and Tab2.

Regards,
Helen
the Telerik team
0
Patrick
Top achievements
Rank 1
answered on 23 Feb 2011, 03:53 PM
Works, thank you!

For readers sake, the correct property on the RadTab node is PostBack="false", and not AutoPostBack="false"

Tags
TabStrip
Asked by
Patrick
Top achievements
Rank 1
Answers by
Helen
Telerik team
Patrick
Top achievements
Rank 1
Share this question
or