Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > PanelBar > Changing Selection Client-side

Answered Changing Selection Client-side

Feed from this thread
  • iConect Developer - Mike avatar

    Posted on Nov 11, 2011 (permalink)

    Is there a way to change the PanelBar's current selection through a javascript or jQuery call? I'm trying to be able to reset it to 'no selection' when the user presses a button.

    Reply

  • Answer Dimo Dimo admin's avatar

    Posted on Nov 14, 2011 (permalink)

    Hi Keith,

    The PanelBar selection is purely visual, so in order to clear it, you only have to remove the t-state-selected CSS class from any items that have it:

    var panelbar = $("#PanelBarID");
    $('.t-item > .t-link.t-state-selected', panelbar).removeClass('t-state-selected');


    Greetings,
    Dimo
    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 Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > PanelBar > Changing Selection Client-side
Related resources for "Changing Selection Client-side"

ASP.NET MVC PanelBar Features  |  Documentation  |  Demos  |  Telerik TV ]