Metronic DataTable – datatable.setActiveAll(active) problem
May 18, 2018 at 4:56 pmPosts: 46Member 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 year ago by willaguilar.
May 19, 2018 at 3:56 amPosts: 2715Support Staff Reply #17702
Thanks for your feedback.
We will check it and provide the fix.
May 22, 2018 at 10:06 pmPosts: 46Member 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: 2715Support 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: 46Member 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: 2715Support Staff Reply #18174
Can you try to enable the checkbox extension? Please check this sample code.
June 15, 2018 at 3:08 pmPosts: 46Member 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: 2715Support 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: 46Member Reply #18276
I tried your snippet and it didn’t work.
June 21, 2018 at 3:58 amPosts: 2715Support Staff Reply #18327
We will fix it in the code then. We will release the quick next updates in a few days more.
June 28, 2018 at 3:04 pmPosts: 46Member Reply #18512
This bug has been fixed in version 5.3
June 29, 2018 at 3:20 amPosts: 2715Support Staff Reply #18544
Thanks for your feedback 🙂
All the best for your projects!
August 1, 2018 at 3:00 pmPosts: 46Member Reply #19104
This bug has reappear on version 5.5.1 🙁
You must be logged in to reply to this topic.