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

RadTabStrip TabClick Event Ajax

3 Answers 132 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Lasly
Top achievements
Rank 1
Lasly asked on 12 Oct 2011, 03:31 PM
Hi,
I'm using RadTabStrip control into a MasterPage.
I need to use the TabClick event only in two tabs, so I've set the tab's PostBack property to true.
Now my event is fired, but in async mode, why? I'm not including my TabStrip into RadAjaxPanel or UpdatePanel.

To work around this problem in the Page_Init event (aspx Page_Init) I've registered the control RadTabStrip as PostbackControl with the method ScriptManager.RegisterPostBackControl(...), this works only SYNC postback, when I do a ASYNC postback, the RadTabStrip control works as ASYNC control.

Can you help me?
Thanks
Best Regards

3 Answers, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 2
answered on 14 Oct 2011, 01:29 PM
Hello Lasly,

Can you show us what your page markup looks like? The RadTabStrip would only perform an Ajax request if it or it's parent is enclosed inside an UpdatePanel/RadAjaxPanel or using RadAjaxManager.
0
Lasly
Top achievements
Rank 1
answered on 14 Oct 2011, 03:10 PM
I'm not using RadAjaxManager for this control and the parent object is not included into RadAjaxPanel or UpdatePanel.

This is my MasterPage
<form id="frmGestioneLocazioni" runat="server">
    <div>
        <asp:ScriptManager ID="scriptManager" runat="server" EnablePartialRendering="true">
        </asp:ScriptManager>
        <telerik:RadAjaxManager ID="ajaxManager" runat="server">
            <ClientEvents OnRequestStart="OnRequestStart" />
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="pnlLoading" runat="server">
        </telerik:RadAjaxLoadingPanel>
  
        <asp:ContentPlaceHolder ID="contentGestioneLocazioni" runat="server">
        </asp:ContentPlaceHolder>
</div>
</form>


and this my ASPX page:
<asp:Content ContentPlaceHolderID="contentGestioneLocazioni" ID="cntContratti" runat="server">
    <table border="0" style="width: 100%; height: 100%;" cellpadding="0" cellspacing="0">
        <tr>
            <td class="toolbar">
                <telerik:RadTabStrip ID="stripGestioneLocazioni" runat="server" CausesValidation="false" 
                      MultiPageID="pagesGestioneLocazioni" OnTabClick="stripGestioneLocazioni_TabClick">
                </telerik:RadTabStrip>
                <%-- ontabclick="stripGestioneLocazioni_TabClick" : CL TEMP, da rivedere perchè fa postback completa --%>
            </td>
        </tr>
    </table>
</asp:Content>

NOTE: In RequestStart event I check if my request are sent by DownloadButton
0
Accepted
Dimitar Terziev
Telerik team
answered on 17 Oct 2011, 09:32 AM
Hi Lasly,

Please open a support ticket and provide a sample page with the issue being reproduced so we could test it locally in order to find a solution.

Regards,
Dimitar Terziev
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
Tags
TabStrip
Asked by
Lasly
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 2
Lasly
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Share this question
or