Srikanth GanesanOctober 21, 2016 at 6:19 am #2916
We have a table with 2 columns – name & location. Name is in the format – lastname, firstname.
When the sort icon is clicked for location column, things are sorted asc/desc based on the up/down arrow clicked but for the name the sort does not work correctly and could not understand the sort ordering.
Is this a known issue with table sort (or) what options are there to get around this issue ?
Srikanth GSPARK SupportOctober 21, 2016 at 9:06 am #2919
There is no known issue with sorting that we have logged.
Can you provide a screenshot of the issue or a data set that I can test?
Stephen P.Srikanth GanesanOctober 27, 2016 at 1:09 am #2950
My mistake, the name uses the LINK control, not the output text control and the sorting issue is due to that. We removed the LINK & we are able to sort asc/desc work correctly.
So my next question – is there a way to get sorting work on LINK control – based on the Link Text ?
Srikanth GSPARK SupportOctober 27, 2016 at 8:30 am #2953
The problem here is that the sort is happening on the main binding for the control being sorted. In the case of Link, the “Link Text” configuration option is bound to display strings, whereas the main binding of the control is looking to be bound to a Boolean variable. The Boolean controls the “has been clicked” functionality in websites such as changing the link from blue to purple once clicked.
The binding of the Link control can be overridden to use the name String by unchecking the “Show matching variables only” and it will sort. However, you may experience unintended results. The best practice is to use a Text or Output Text control to display the Name and sort with the proper variables bound, and place a link or button in the next column to implement the functionality that requires navigation.
You must be logged in to reply to this topic.