Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hello,
In latest version of ThingWorx you can configure the column and set this property that would to the trick:
If you don't have this option in your current version, you may need to introduce a new column without any link (just the value) and trick the system to sort on this one. But this solution depends if you are sorting on server side or on client side.
Rgds,
Guillaume
From "Help Center" - "Configuring Grid Columns": https://support.ptc.com/help/thingworx/platform/r9/en/index.html#page/ThingWorx/Help/Mashup_Builder/Widgets/Grid_ConfiguringGridColumns.html
Hello @VladimirN,
I'm talking about HyperLink columns not normals col.
Thank you for your response.
BR,
Hrishabh
Hello @Hrishabh.Sharma ,
To achieve the sorting in Grid, do the following: The Grid generates a Query object that contains the desired sorting, but then you need to pass this value to a service which performs the actual sorting. In order to add a parameter type Query, to which you have to bind the Query generated by the grid. Thenafter, in your service code you need to sort the infotable.
You can refer to the help center guide for sorting and filtering: https://support.ptc.com/help/thingworx/platform/r9/en/index.html#page/ThingWorx/Help/Mashup_Builder/Widgets/SortingSearchingAndFilteringInAdvancedGridAndTreeGrid.html
Pls let me know if it helps.
Regards
Bhawna
Thanks for your response.
Its good @bchaudhary but this is for normal sorting over columns,
there is a columns, which have hyperlink, but i want to sort that.
is it possible?
BR,
Hrishabh Sharma
Hello,
In latest version of ThingWorx you can configure the column and set this property that would to the trick:
If you don't have this option in your current version, you may need to introduce a new column without any link (just the value) and trick the system to sort on this one. But this solution depends if you are sorting on server side or on client side.
Rgds,
Guillaume