RadPanelBar provides a flexible client-side API - you can
easily interact with the panelbar in the browser using the panelbar
client-side object.
-
Getting the RadPanelBar client-side object: RadPanelbar creates a client-side object
with the ClientID of the panelbar. You can obtain the reference using the following
javascript code:
var panelbar = <%= RadPanelbar1.ClientID %>;
-
Once you get the client-side object of RadPanelbar, you can use the FindItemByText
methods to get the instance of a particular item. Example:
var panelbar = <%= RadPanelbar.ClientID %>;
var text = document.getElementById("openTextBox").value;
var item = panelbar.FindItemByText(text);
-
When you get the instance of a particular item, you can call the Disable() /
Enable() / Expand() / Collapse() / etc. methods: