Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
150
hide spliter bar if pane is locked
posted

is it possible to hide the spliter bar if the pane is locked, not allowed to collapse and resize?

Parents
No Data
Reply
  • 8736
    posted

    Hello eable;

    It is possible to set hidden property of splitterbar in CSS class based on the splitter pane as shown below:

    Code that sets CSS class for SplitterBar:

    foreach (SplitterPane pan in this.WebSplitter1.Panes)
    {
    if (pan.Locked == true)
    {
    this.WebSplitter1.SplitterBar.CssClass = "hide";
    }
    }

    Styles on the page:

    <style type="text/css">

    .hide
    {
    visibility:hidden;
    }

    </style>

    Hope this helps.

Children