Prevent user from collapsing any items

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    30 posts
    Member since:
    Jul 2012

    Posted 08 Feb 2012 Link to this post

    Is there an option for the panel bar such that all items will be expanded and the user cannot collapse any of them?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 08 Feb 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top