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

Disable RadTab Click

1 Answer 154 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Purushothama
Top achievements
Rank 1
Purushothama asked on 25 Oct 2016, 08:31 PM

Hi,

 

I am creating tabs dynamically through AddTab, AddPageView approach (http://demos.telerik.com/aspnet-ajax/tabstrip/examples/multipage/dynamic-pageview-creation/defaultcs.aspx). I have 8 tabs in which last tab is just a image.. I want disable the Click event on last tab. 

Could you please tell me how to approach?

 

Thanks and Regards,

Puru

1 Answer, 1 is accepted

Sort by
0
Anton
Telerik team
answered on 28 Oct 2016, 10:21 AM
Hello,

You could use the OnClientTabSelecting event as in the code bellow:

function OnClientTabSelecting(sender, args) {
    var tab = args.get_tab();
 
    //Identify the tab by index or text etc.
    var index = tab.get_index();
 
    if (index && index === 7) {
        args.set_cancel(true);
    }
}

Regards,
Anton
Telerik by Progress
Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
Tags
TabStrip
Asked by
Purushothama
Top achievements
Rank 1
Answers by
Anton
Telerik team
Share this question
or