Metronic DataTable – datatable.setActiveAll(active) problem
May 18, 2018 at 4:56 pmPosts: 34Member Reply #17690
I have a DataTable which is getting its data from an ajax source. I have implemented an “Enable/Disable” functionality via the record selection. Everything works ok.
Here is the problem, I’m enabling/disabling my records via ajax. When ajax finishes two things happen….
Unselecting all the rows get executed. However, when the
reload()functions finishes the rows that I selected originally get selected again.
- This topic was modified 1 month, 1 week ago by willaguilar.
May 19, 2018 at 3:56 amPosts: 2292Support Staff Reply #17702
Thanks for your feedback.
We will check it and provide the fix.
May 22, 2018 at 10:06 pmPosts: 34Member Reply #17768
Is this a bug then? Any estimate time on fix. It’s a major bug for me, specially when deleting records. The hidden menu never goes a way since it thinks a record is selected.
May 23, 2018 at 2:45 amPosts: 2292Support Staff Reply #17780
No estimation time yet. But we will give the fix patch here before it releases.
June 11, 2018 at 9:47 pmPosts: 34Member Reply #18158
Hello, according to the new release changelog you guys fixed this issue. However, I can confirm this bug still exists and hasn’t been fixed
June 13, 2018 at 10:45 amPosts: 2292Support Staff Reply #18174
Can you try to enable the checkbox extension? Please check this sample code.
June 15, 2018 at 3:08 pmPosts: 34Member Reply #18196
Hello Jai, the extension is enabled. The current problem is that the records never get deselected. I have added two pictures showing this behavior
Attachments:You must be logged in to view attached files.
June 17, 2018 at 12:53 amPosts: 2292Support Staff Reply #18210
The quick fix is you can try to remove it from the datatable variable.
datatable.checkbox.selectedAllRows = false;
datatable.checkbox.selectedRows = ;
June 19, 2018 at 3:38 pmPosts: 34Member Reply #18276
I tried your snippet and it didn’t work.
You must be logged in to reply to this topic.