My select and checkbox rows are not showing the label data
My select and checkbox rows are not showing the label data
randy.johnson
Posts: 18Questions: 8Answers: 0
in Editor
In my example:
http://propane.randy1.com/randy
The Warehouse category column is showing the id instead of the actual text value I want it to show.
The Active column I would like to show Yes if the value is 1 and No if the value is 0
I thought this might give me some insight but it doesn't seem to help
http://datatables.net/reference/option/columns.data
What am I missing?
Thank You,
Randy
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Well its showing exactly what you're telling it to show, You have the
columns.data
set tointWarehouseCategoryId
, which when I look at your AJAX source, those are obviously numeric values.For that, you would need to utilize the
columnDefs
option, something like this:Hello,
I found this in the docs and it helped out greatly on my first issue.
https://editor.datatables.net/examples/inline-editing/join.html
And adding the columnDefs did the trick.
Thank You so much. I have my first datatables and inline editing piece working.
Randy