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

[Solved] Changing Selection Client-side

1 Answer 74 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
iConect Developer - Mike
Top achievements
Rank 1
iConect Developer - Mike asked on 11 Nov 2011, 08:15 PM
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.

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 14 Nov 2011, 01:04 PM
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
Tags
PanelBar
Asked by
iConect Developer - Mike
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or