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

OnClientTabSelected and server side AjaxRequest issue

1 Answer 66 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
blablabla
Top achievements
Rank 1
blablabla asked on 25 Jul 2011, 05:18 PM
Hi,

I have a RadTabStrip where I set the OnClientTabSelected as such:
<telerik:RadTabStrip ID="tabstrip1" runat="server" SelectedIndex="0" MultiPageID="multipage1" OnClientTabSelected="OnSelected">

The javascript implementation of the "OnSelected" method is the following:

function OnSelected(sender, args) {
   var ajaxManager = $find("<%= ajax1.ClientID %>");
   ajaxManager.ajaxRequest("test");
}

A very simple implementation.
My AjaxManager is implemented as such:

<telerik:RadAjaxManager ID="ajax1" runat="server" OnAjaxRequest="ajax1_AjaxRequest">
        <AjaxSettings>
            blablabla code here
        </AjaxSettings>
    </telerik:RadAjaxManager>

The serverside event of "AjaxRequest" has an empty implementation with a breakpoint inside.

When I execute this code and I change tabs, the javascript function is called correctly, but the serverside event is never called.

I tried the exact same code using a button instead of the tabstrip, and it works fine.

I tried it with the OnClientTabSelected event, and no dice either.
Is this a bug? Am I missing something?

Thank you.

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 27 Jul 2011, 01:33 PM
Hi Blablabla,

I've made a sample page trying to reproduce the issue, but to no avail.

I've attached the page so you could test it on your side.

Greetings,
Dimitar Terziev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
TabStrip
Asked by
blablabla
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or