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
1175
igGrid - Deleting the last row in a Group
posted

I have an igGrid with group by feature enabled.  We use unbound columns to paint delete buttons because our users HATE that the OOTB buttons only show on hover.  So when a user deletes the last row in a group, the group is still visible but without any records in it.  How do we get rid of the group when there aren't any more rows under it?

Preferably without data binding.  Otherwise we'll need to keep the current scroll position, group collapse state, etc.

Parents
  • 15320
    Offline posted

    Hello Karthik,

    I prepared a sample that shows igGrid with template delete button in the most right column, using column template functionality. The grid has also GroupBy feature enabled. I tested the behavior that you're describing and when I delete all rows from a certain group, the respective group is deleted as well. Attached you can find the sample for your reference. Please let me know if you have any further questions.

    Regards,
    Tsanna

    deleteLastRowInGroup.zip
Reply Children