Multi level grouping datasrc orderable

Multi level grouping datasrc orderable

nicosanicosa 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

  • kthorngrenkthorngren Posts: 21,327Questions: 26Answers: 4,949

    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

  • nicosanicosa Posts: 10Questions: 1Answers: 0

    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

  • nicosanicosa Posts: 10Questions: 1Answers: 0
  • kthorngrenkthorngren Posts: 21,327Questions: 26Answers: 4,949

    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:

    Uncaught ReferenceError: addlabel is not defined

    I wonder if the addlabel() function is doing something to change the order.

    Kevin

  • nicosanicosa Posts: 10Questions: 1Answers: 0

    i tried hard code as below:

    result is same still orderable
    before click as below:

    after click as below:

  • nicosanicosa Posts: 10Questions: 1Answers: 0

    i show the table with function, as below:

    can it cause that issue?

  • kthorngrenkthorngren Posts: 21,327Questions: 26Answers: 4,949

    Does the test case you provided show this issue? If it does please provide the steps so we can recreate the problem.

    i show the table with function, as below. can it cause that issue?

    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

  • kthorngrenkthorngren Posts: 21,327Questions: 26Answers: 4,949

    One thing you might try is to search your Javascript code for order to see if anything is executing the order() API. Try commenting out any that you find. Let us know the results.

    Kevin

  • nicosanicosa Posts: 10Questions: 1Answers: 0

    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

  • nicosanicosa Posts: 10Questions: 1Answers: 0
    edited November 2023

    Solved Sir

  • kthorngrenkthorngren Posts: 21,327Questions: 26Answers: 4,949

    Great, glad you got it working.

    Kevin

Sign In or Register to comment.