Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!

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



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • 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