Skip to main content

Set a maximum number of rows in a data-grid

Updated over a month ago

Data-grids and edit-grids are powerful components that enable the responder to dynamically add rows to a table. In certain scenarios, it may be beneficial to restrict the number of rows a user can add. To achieve this, follow these steps:

  1. Open the component settings for your data-grid. This is distinct from the settings for individual components within the data-grid.

  2. Navigate to the validation tab and locate the “maximum length” setting.

  3. Set this value to the desired number of rows you want to limit the data-grid to. This modification will disable the “add another” button once the grid reaches this limit.

Did this answer your question?