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

RadTabStrip_TabClick for each tab

1 Answer 62 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Max
Top achievements
Rank 1
Max asked on 27 Apr 2012, 03:46 PM
How can I achieve custom behavior, when postback will only occur upon specific tabs being selected?
Say, there are 3 tabs and I would like to do nothing with the first, do client-js modifications with the 2, and process the click on the 3d button on the server.
Generic solution is requiered in order to support any amount of tabs.

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 30 Apr 2012, 04:03 PM
Hi,

You should subscribe to the TabClick server event and to the OnClientTabSelecting client-side one. In the event handler function of the client-side event the following check show be performed and based on the result the post-back should be disabled if needed:
function onTabSelecting(sender, args)
{
    if (//Condition)
    {
        args.get_tab().set_postBack(false);
    }
}

All the best,
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
Max
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or