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
605
How to get Header cell in grid
posted

hi,

please, i want to know how can i retrieve header cell in getCell method in Custom Column Class 

  • 34510
    Offline posted

    Hi ueldeep,

    The header cell is not exposed to the getCell method.  You should override the getHeaderCell method and use that to work with the header cell in your custom column class.

    • 605
      Offline posted in reply to Robert Stoffers

      Hi,

      Thanks for reply i make check boxes column and there is check box all in header cell, i want when unchecked one of row check all effect, so i need to get header cell in get cell 

      • 605
        Offline posted in reply to Robert Stoffers

        Thank you for reply, it`s working fine

        • 34510
          Verified Answer
          Offline posted in reply to Omar Mantawy

          Hi ueldeep,

          You should store the header cell in the custom column definition class so you can access it later.  When getHeaderCell is called and you create the header cell, store that instance in a private property.  Then inside getCell where you are handling the Checkbox check event, you can use that private property to set the header checkbox.  I assume you need the header checkbox because you need to turn it off if a user unchecks one of the rows.

          • 605
            Offline posted in reply to Omar Mantawy

            Hi,

            please, i need your reply