Topic: Table Editor Max Rows
Magnitis free asked 6 years ago
Question/suggestion I guess. I added a new column to table editor. Everything was ok except editor modal did not populate table data on the 7th new column. After days of making sure it was not a html error on my part. I found that mdbEditor.js had hard coded column lengths. By manually adding a 6th row to: function buttonEditInput() I was able to resolve the problem. Is there an easier way to add columns? If not I think this code should be more dynamic.. Magic numbers are never a good thing ;)
Piotr Glejzer staff answered 5 years ago
Hi,
You can try to use something like that: https://mdbootstrap.com/snippets/jquery/piotr-glejzer/314818 Is that what you wanted?
Edit. You have to load datatables.js to work with that example ( I don't know why is not working when I tried use data tables js code inside this snippet or I put assets link to work with that )
Best,Piotr
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: PC
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: No