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
325
Hide ADD ROW button where there is no data in Grid
posted

Hi team,

I do not want "ADD ROW" button where there is no data in Grid. It is being displayed by default.

I am providing Add row functionality from the igx-grid-toolbar. So this button is not needed for our use case.

Can you please let us know or provide sample to not show that button when there is no data.

Parents
  • 1700
    Verified Answer
    Offline posted

    Hello Rameez, 

    In order to not display the “Add Row” button, I recommend you providing the emptyGrid template and setting it to whatever fits the need of your application. 

    I am attaching a small sample to demonstrate how the emptyGridTemplate can be set on the gird. You can access the sample here

    Please test the sample on your side and let me know if you have any questions. 

    Regards,
    Ivan Kitanov

Reply Children