Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > PanelBar > Prevent user from collapsing any items

Not answered Prevent user from collapsing any items

Feed from this thread
  • Kevin avatar

    Posted on Feb 8, 2012 (permalink)

    Is there an option for the panel bar such that all items will be expanded and the user cannot collapse any of them?

    Reply

  • Posted on Feb 8, 2012 (permalink)

    Hello Kevin,

    Try the following javascript.
    JS:
    <script type="text/javascript">
    function onClientItemClicking(sender, eventArgs)
    {
     var item = eventArgs.get_item();
     if (item.get_expanded())
     {
       eventArgs.set_cancel(true);
     }
    }
    </script>

    -Shinu.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > PanelBar > Prevent user from collapsing any items
Related resources for "Prevent user from collapsing any items"

[  ASP.NET PanelBar Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]