jQuery UI Widgets Forums DataTable Sorting in datatable row rendering example

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 2 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • AllanD
    Participant

    Hi,
    I want to use the row rendering as illustrated in javascript-datatable-rows-rendering.htm demo but I also want to be able to sort, and filter, on the components of the data records such as “price”.

    The example currently has “sortable:true” but this display records in the order or reverse order in which the records are stored in the array.

    I have tried defining “datafields” so that I can sort on data components but cannot see how to map these data components to the more usual columns format.

    Is it possible to sort on individual data components in this example?

    Sorting in datatable row rendering example #96722

    Hristo
    Participant

    Hello AllanD,

    It is an interesting project. Unfortunately, I cannot provide you such example but you need to determinate how these items will be sorted and filtered.
    You could create additionally hidden columns, that they are collect price, name, characteristics and so on. You could use this to sort by them all rows (with “sortBy” method of the DataTable).
    Also, I would suggest you look at this demo it could give you some ideas:
    https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxslider/jquery-range-slider.htm?light

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.