Column Render multiple values for SearchPanes
Column Render multiple values for SearchPanes
Link to test case: https://live.datatables.net/hulikiji/1/
Description of problem: Appreciate Kevin's (@kthorngren) help prior. I was pointed to and eventually worked out a solution if the data is setup as shown in this: https://live.datatables.net/laboperi/1/
I am however working with a shallower dataset, meaning the values are only nested at a parent level, such as:
var thisData =
[
{
"AppNumber": "1",
"AppName": "Application 1",
"FullName": "Cedric Kelly",
},
{
"AppNumber": "2",
"AppName": "Application 2",
"FullName": "Cedric Kelly, Bruno Nash"
},
{
"AppNumber": "3",
"AppName": "Application 3",
"FullName": "Cedric Kelly, Bruno Nash"
},
];
Not quite sure how to reference to get the values to work for the searchPanes as it did. Only refering to "FullName" here.
Essentially, trying to separate those values (by either replacing the comma directly when created or another means) so they appear in the searchPanes as unique options for filtering.
This does not work:
data: "FullName",
render: {
_: '[</br> ].FullName',
sp: '[].FullName'
},
searchPanes: {
orthogonal: 'sp'
}
Appreciate any assistance.
Replies
I was able to refactor the data file and I have this working now. This can be removed or closed.