Limit number of rows in the table
Limit number of rows in the table
impex09
Posts: 45Questions: 20Answers: 0
in DataTables
Hi guys, I need to create a condition or simply limitation when in my table has 10 records,
the idea is only allow 10 records no more.
do you have any idea?
thank you.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
That's pretty tough to answer without knowing what your data source is and no code sample. I'd check out this link which may be helpful, otherwise please post the example following the guidelines here for how to ask for help.
thank you haloris,
The idea is using datatables,
When you have 10 records in the table, the application must disable the "New" button.
You can disable the create button whenever the table is drawn - see example here.
Colin
Excellent! thank you for you support.