Cascading Lists in Editor with select2
Cascading Lists in Editor with select2
tomcat_nz@hotmail.com
Posts: 11Questions: 4Answers: 0
in Editor
I read a blog 'Cascading Lists in Editor' (datatables.net/blog/2017-09-01) this is very good but I don't use PHP and .NET. I have a problem need help I would like the same output like the sample in the blog but I use select2 and data from localstorage fix in the code how can I code to procuce the same result like the blog. Please show me the sample code.
Thanks
Sam
This discussion has been closed.
Answers
Instead of using "dependent" with an AJAX url you can use it with a callback function and read the data from local storage in there.
Just check the documentation on "dependent" here:
https://editor.datatables.net/reference/api/dependent()
select2 is no problem either. https://editor.datatables.net/plug-ins/field-type/editor.select2
Sorry, no - because this is no coding service. Thank you for your understanding.