Multi level grouping datasrc orderable
Multi level grouping datasrc orderable
nicosa
Posts: 10Questions: 1Answers: 0
Sir, i created datatables with extension Multi level Grouping as show below:
below is javascript:
Unfortunately when i click grouping row as picture below(red square):
it cause table orderable as below:
i need make as in Multi level Grouping that Grouping row cannot clickable and cannot orderable. What is lack with my coding, i need your assist , Sir. Thank before
Replies
If I understand the problem correctly, when you click the RowGroup row the Consignee column sorting changes. Is this correct?
This example doesn't change the order when clicking the RowGroup row. Datatables doesn't create a click event for these rows. Sounds like a click event exists that might be using
order()
to change the Consignee column order.Does the order revert back if you click the RowGroup row a second time?
Please post a link to your page or test case replicating the issue so we can help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
If I understand the problem correctly, when you click the RowGroup row the Consignee column sorting changes. Is this correct? Yes, correct
Does the order revert back if you click the RowGroup row a second time?
_when i click RowGroup for a second time, it does not revert back, revert back when i click header _
i am creating test page right now, will post it after done
here is my fiddle
https://jsfiddle.net/nicosa/7d95ko4q/2/
I don't seem to be able to replicate the sorting issue. Please provide the steps to cause the sorting to change when clicking the RowGroup row.
When clicking the row I see this error:
I wonder if the
addlabel()
function is doing something to change the order.Kevin
i tried hard code as below:
result is same still orderable
before click as below:
after click as below:
i show the table with function, as below:
can it cause that issue?
Does the test case you provided show this issue? If it does please provide the steps so we can recreate the problem.
I'm not sure how it relates to the Consignee column order changing when clicking the RowGroup row. In your screenshots you can see the order arrow image changes. Something is causing that to happen. To find out we will need to see the problem.
Kevin
One thing you might try is to search your Javascript code for
order
to see if anything is executing theorder()
API. Try commenting out any that you find. Let us know the results.Kevin
Sir, i found what cause that issue,
that web i build with adminlte 3 template, i must use their datatables plugin js file to work on datatables,
i have 2 datatables, the second table already solve that issue, RowGroup row can not click and can not orderable but now the issue with
the first one i screenshot for you that can not show the table when i use template's js file, i will try to solve it.
Thank you sir for your kindness assist me
Solved Sir
Great, glad you got it working.
Kevin