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
1150
igGrid Add Row at the bottom instead of top of the gird
posted

Hi,

When I enable adding row, is there a way to put the add row at the bottom at the grid instead of on top? I want to put it in the footer instead of header

Thanks,

Jeffrey

Parents
  • 6279
    Verified Answer
    posted

    Hi Jeffrey,

    Although it's possible with some javaScript trickery (appendChild), it's neither safe, nor easy.
    Why you may ask?

    Well, the Add Row is a part of the igGrid's <THEAD>, so if the grid is re-rendered for some reason, the Add Row will be added to that <THEAD>, no matter where you placed it using appendChild for example. 
    Also, as a member of <THEAD>, there are certain calculations (about height for example) and event hooks that rely on the Add Row being inside the <THEAD>, so placing it somewhere else in the DOM may result in erratic behavior.

    The safest route I can recommend to you at this moment is to submit a new feature request about a new option that will allow the Add Row to be rendered below the data records instead of only above them.

    Hope this helps,
    Borislav 

Reply Children