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
5368
Hiding a WebSplitter pane
posted

I have webforms that serve multiple functions.  I have a WebSplitter splitting the screen vertically, with criteria selection on the left, and the report or content on the right.

Sometimes, the criteria is provided by a querystring.  In these instances, I want to completely hide the criteria pane, and I don't want the splitter bar to be visible.  I just want the content to be visible.

Is there an easy way to do this?

Parents
No Data
Reply
  • 19693
    Verified Answer
    posted

    Hello Rob,

    You can use the approach shared by Viktor in the below forum thread.

    The provided solution is using the ThicknessCssClass of the SplitterBar

    http://community.infragistics.com/forums/p/6012/27416.aspx

    Another possible solution it to collapse the "Criteria" Pane and set invisible style of the SplitterBar

    .invisible

            {

                visibility: hidden;

                display: none;

            }

     

    if (criteria){

               // Collapse the criteria pane

                WebSplitter1.Panes[0].Collapsed = true;

                WebSplitter1.Panes[1].ScrollBars = Infragistics.Web.UI.ContentOverflow.Hidden;

                WebSplitter1.Panes[1].EnableRelativeLayout = false;

                WebSplitter1.BorderColor = Color.Transparent;

                WebSplitter1.BorderStyle = BorderStyle.None;

                WebSplitter1.BorderWidth = new Unit(0, UnitType.Pixel);

                WebSplitter1.SplitterBar.CssClass = "invisible";

            }

    Let me know if you need further assistance.

Children