Disable RadTab Click

2 posts, 0 answers
  1. Purushothama
    Purushothama avatar
    6 posts
    Member since:
    Jun 2016

    Posted 25 Oct Link to this post

    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

  2. Anton
    Admin
    Anton avatar
    58 posts

    Posted 28 Oct Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top