when i'm sort order why template does not re render

when i'm sort order why template does not re render

Long LundyLong Lundy Posts: 8Questions: 1Answers: 0

const columns = [
{ title: "Id", data: "Id", className: "min-width", },
{ title: "ExamSetupId", data: "ExamSetupId", className: "min-width"},
{ title: "ExamSetupCode", data: "ExamSetupCode", className: "min-width",render: '#ExamSetupCode' },
{ title: 'ExamSetupEnglishName', data: "ExamSetupEnglishName", className: "all min-width"},
{ title: "GradingSystem", data: 'GradingSystemCode', className: "min-width", render: '#GradingSystemCode' },
{ title: "CourseLength"), data: "CourseLength", className: "min-width",},
];

This question has an accepted answers - jump to answer

Answers

  • rf1234rf1234 Posts: 3,027Questions: 88Answers: 422
    Answer ✓

    Too bad I don't understand what the problem is. Even though mind reading was on my list of good intentions for 2025!

    Perhaps you could explain your problem in more detail. Ideally, you should provide a test case, as per the forum rules. Thank you.

  • Long LundyLong Lundy Posts: 8Questions: 1Answers: 0

    when i use DataTable vue component slot with ajax and then i am sort order "asc" or "desc" but slot is not draw again

  • kthorngrenkthorngren Posts: 21,554Questions: 26Answers: 4,994
    edited January 4

    This ajax loaded example, from this blog, sorts properly. It will be difficult to debug without seeing the issue as there are many reasons sorting might not work. Are you able to replicate the issue using Stackblitz?

    If you are unable to provide a test case then please provide more information about your environment?

    1. Are you using client side or server side processing?
    2. If server side processing are you using a Datatables supplied server side processing script? And do you see an ajax request, using the browser's network inspector, when sorting the table?
    3. If client side processing do you get errors in the browser's console when sorting?
    4. What other troubleshooting steps have you taken?
    5. Post your full Datatables configuration.

    Kevin

Sign In or Register to comment.