Can we make the column inline editable if we display name from the select option instead of id?
Can we make the column inline editable if we display name from the select option instead of id?
![danvanwijk](https://secure.gravatar.com/avatar/0608b667e6d78524d8c350a19b81667a/?default=https%3A%2F%2Fvanillicon.com%2F0608b667e6d78524d8c350a19b81667a_200.png&rating=g&size=120)
Link to test case: https://joomrp.urtestsite.com/portal/companies/sites.html
Debugger code (debug.datatables.net):
Error messages shown: No errors
Description of problem: I need to know if we display the name of selected option using the joins will we be able to make that column editable? Because inline editing doesn't seems to be working for column "Company" and "Country" in the above link. Can you please help with this?
Thanks!
This question has an accepted answers - jump to answer
Answers
The server appears to be returning
null
forcompanies.name
. Is that expected? It might just be that there isn't a value set for it yet? I don't want to try editing the data incase you are using it!Inline editing isn't working on those fields at the moment - when you click on them, the following is logged on the console:
You need to use
columns.editField
to tell Editor what field to use to edit the data for that column. See this example which I think is basically doing what you are looking for.Allan
Inline editing isn't enabled for Company field yet. Yes, it answered my question. Thanks!