Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to hide Header for ListGrid?

    Hello,
    Is there any function to hide a header with all fields under it for ListGrid?

    #2
    ListGrid.setShowHeader(false). There's a sample of it in the Showcase.

    Sanjiv

    Comment


      #3
      Originally posted by sjivan
      ListGrid.setShowHeader(false). There's a sample of it in the Showcase.

      Sanjiv
      Sorry, seems I have not fully described what I want.

      For example, I want to hide the headerspan 'Demographics' with fields under it on this page.

      Comment


        #4
        If you want to hide a header span after the grid has been rendered with the header span, then simply hide the individual fields under the header span.

        For example

        countryList.hideField("population");
        countryList.hideField("area");
        countryList.hideField("gdp");

        If you are using the latest nightly then you can use the more efficient hideFields method : countryList.hideFields("population", "area", "gdp");

        Comment


          #5
          Originally posted by sjivan
          If you want to hide a header span after the grid has been rendered with the header span, then simply hide the individual fields under the header span.

          For example

          countryList.hideField("population");
          countryList.hideField("area");
          countryList.hideField("gdp");

          If you are using the latest nightly then you can use the more efficient hideFields method : countryList.hideFields("population", "area", "gdp");
          I hoped I missed a function to manage a headerspan directly. Something like headerSpan.hide("name") or headerSpan.showIf("name") = false.

          Thank you for the clarifications.

          Comment

          Working...
          X