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

Ajax Initiator on TabStrip and PageViews

2 Answers 61 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Gotcha
Top achievements
Rank 1
Gotcha asked on 23 Nov 2011, 05:05 PM

Hi is it possible to have the Initiator a particular Tab in a Tab Strip and its respective PageView as target Updated Control?
In the Configurator, I only see an index type name like i0, i1, i2 under my TabStrip Control... So I tried to select it as I though ti twould but got the following error

at Telerik.Web.UI.RadPageViewCollection.AddAt(Int32 index, Control child) at Telerik.Web.UI.RadAjaxControl.MoveUpdatePanel(Control initiator, Control updated) at Telerik.Web.UI.RadAjaxControl.PerformRender() at Telerik.Web.UI.RadAjaxControl.OnPageRender(HtmlTextWriter writer, Control page) at Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at System.Web.UI.Page.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

<telerik:RadTabStrip ID="tsCRMPPSA" runat="server" MultiPageID="mpCRMPPSA" SelectedIndex="0"
    OnTabClick="tsCRMPPSA_TabClick">
    <Tabs>
        <telerik:RadTab runat="server" Text="Search PPSA" PageViewID="pvSearch" Selected="True">
        </telerik:RadTab>
        <telerik:RadTab runat="server" Text="Register" PageViewID="pvRegister">
        </telerik:RadTab>
        <telerik:RadTab runat="server" Text="Results" PageViewID="pvResults">
        </telerik:RadTab>
    </Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="mpCRMPPSA" runat="server" SelectedIndex="0">
    <%---------------------- Search Pageview ---------------------------%>
    <telerik:RadPageView ID="pvSearch" runat="server">
  
    </telerik:RadPageView>
    <%---------------------- Registration Pageview ---------------------------%>
    <telerik:RadPageView ID="pvRegister" runat="server">
  
    </telerik:RadPageView>
    <%---------------------- Results Pageview ---------------------------%>
    <telerik:RadPageView ID="pvResults" runat="server" EnableViewState="false">
    </telerik:RadPageView>
</telerik:RadMultiPage>

I've tried different combination without success:
1. Actual Index of the Tab  as initiator and pvSearch, pvRegister , pv Result as Updated Controls
2. tsCRMPPSA as Initiator and pvSearch, pvRegister , pv Result as Updated Controls

The only combination that works is I used the top level
tsCRMPPSA to update mpCRMPPSA .... so the whole multiplage is transferred as opposed to controls of the individual tab selcted.


Also there is a bug in the COnfigurator... When you select the indexed ta b i0, i2, i3... closed it and you try to open the configurator again to do another change, the Ajax Settings are duplicated...

C

2 Answers, 1 is accepted

Sort by
0
Accepted
Iana Tsolova
Telerik team
answered on 24 Nov 2011, 02:21 PM
Hello Gotcha,

This is not possible, you cannot ajaxify particular Tab or PageView. You should ajaxify the whole RadTabStrip and MultiPage. And to optimiza the performance in this case, you should set AutoPostBack for the RadTabStrip and RenderSelectedPageOnly for the RadMultiPage to true.

Regards,
Iana Tsolova
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Gotcha
Top achievements
Rank 1
answered on 24 Nov 2011, 02:28 PM
Thanks... i didnt know that and the renderselectedpageonly attribute!
Tags
Ajax
Asked by
Gotcha
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Gotcha
Top achievements
Rank 1
Share this question
or