Telerik Extensions for ASP.NET MVC

Version Q1 2012, released 04/19/2012

Client-side API

  • UI Components
    • ASP.NET WebForms
    • Silverlight
    • ASP.NET MVC
    • WinForms
    • WPF
  • Data
  • TFS Tools
  • Automated Testing
  • ASP.NET CMS

Client API

/
/

About this example ASPXRazor

This example shows how to use the client-side API of Telerik PanelBar for ASP.NET MVC.

To use the client-side API you should first retrieve the panelbar client-side object. The following code snippet shows how to do this:

<script type="text/javascript">
function getPanelBar(){
    //"Panelbar" is the value specified by the Name() method.
    var panelbar = $("#Panelbar").data("tPanelBar");
    return panelbar;
}
</script>

Available client-side methods:

  • You can expand a panel item with the expand(...) method. This method accepts a DOM element representing an existing panel item, a collection of DOM elements or a jQuery selector.
  • You can collapse an item with the collapse(...) method. This method accepts a DOM element representing an existing panel item, a collection of DOM elements or a jQuery selector.
  • You can enable an item with the enable(...). This method accepts a DOM element representing an existing panel item, a collection of DOM elements or a jQuery selector.
  • You can disable an item with the disable(...) method. This method accepts a DOM element representing an existing panel item, a collection of DOM elements or a jQuery selector.

Get more than expected!

Take the Telerik Extensions for ASP.NET MVC to your Visual Studio projects to truly experience their power. Download your free copy now and jumpstart your development with the available learning resources.

The Extensions are offered in both open source and commercial versions the differences between which are well explained in the licensing FAQ.

If you have any questions, do not hesitate to contact us at sales@telerik.com.

Other Demos: