rowCallback not working with rowGroup
rowCallback not working with rowGroup
zgoforth
Posts: 493Questions: 98Answers: 2
Link to test case: https://jsfiddle.net/BeerusDev/phncg5t7/111/
Hello, as you can see in my example, rowCallback is working to hide rows on every table, but when I have a table that uses rowGroup.startRender, it doesn't effect that table, and still shows the No Group row...
Answers
I tried the following: https://datatables.net/reference/option/rowGroup.emptyDataGroup, which states
but it still shows a rowgroup with "null" and is now no longer collapsible/expandable
Datatables doesn't know about the hidden row when you manipulate the table outside of Datatables APIs. Using
$(row).hide();
won't work with Datatables as Datatables still has that row marked as displayed. Create a search plugin to filter the rows.Kevin
https://jsfiddle.net/BeerusDev/phncg5t7/129/,
I added on to my current searchPlugin for each table, and it is supposed to hide the Cletus Dev item in table 3&4 but it is still showing it...
Here is my updated JSFiddle: https://jsfiddle.net/BeerusDev/phncg5t7/152/
I have been trying and trying, the condition makes sense, it just is not accepting it and still showing the blank value.. Why is this, I ended up changing it to the following:
Have you debugged the values of
phoneCheck
andmonthCheck
? Could be they are empty strings. Check for bothnull
and empty string (""
).Kevin
Well in my JSFiddle, the array of objects I defined as data for Javscript sourced data, is as follows:
The value I expected was to be null or even undefined, but apparently it is returning
" "
an empty string, I made some adjustments and it is good to go