Show values in select box in a dt
Show values in select box in a dt

Hi
I know I can do the following:
{ data: 'CustomerVoiceCLIPriceLists' ,
render: "[, ].PriceList",
className: 'text-left'
},
But I would like to show the values (ie the price list names under PriceList above) in a select box but I'm not sure how to initialise the string with the <select> bit to have something like this:
{ data: 'CustomerVoiceCLIPriceLists' ,
render: "[<option value=].PriceList>.PriceList</option>",
className: 'text-left'
},
and return the options inside <select> and </select>. Thank you.
This discussion has been closed.
Answers
Hi @dynasoft ,
That's a bit beyond the shorthand - you would need to make
columns.render
a function and iterate through thedata
parameter to create the HTML element list of checkboxes.Cheers,
Colin
Hi
Eventually got it to work like I wanted. Many thanks.
Did you use a function, or your shorthand?