Skip to content

Infragistics Community Forum / Web / Ignite UI for Angular / Need to hide the Add button once two rows are added

Need to hide the Add button once two rows are added

New Discussion
Shobhana Suara
Shobhana Suara asked on Jul 17, 2020 7:57 AM

I am using igx grid.

Scenario: On click of Add button, 2 new rows are added to the grid. After 2 rows are added to the Grid, Add button should be hidden.

Stackbliz Sample: https://stackblitz.com/edit/angular-grid-add-multi-rows?file=src%2Fapp%2Fgrid%2Fgrid-allData-summary%2Fgrid-allData-summary.component.ts

Please help ASAP!!

Sign In to post a reply

Replies

  • 0
    元喜 中江
    元喜 中江 answered on Jul 17, 2020 1:12 AM

    Hello Shobhana,
    Thanks for creating the topic.

    I forked and edited your sample.
    https://stackblitz.com/edit/angular-grid-add-multi-rows-zitqle

    In this sample, the add row button clicking event also adds a class to the container element. Then hide a button by stylesheet.

    Please check this sample and let me know if you have any questions.
    Sincerely,
    Motoki

    • 0
      Shobhana Suara
      Shobhana Suara answered on Jul 17, 2020 7:57 AM

      Thanks a lot Motoki. It worked!

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Shobhana Suara
Favorites
0
Replies
2
Created On
Jul 17, 2020
Last Post
5 years, 7 months ago

Suggested Discussions

Created by

Created on

Jul 17, 2020 7:57 AM

Last activity on

Feb 19, 2026 9:51 PM