Forum Discussion
Hello Angela,
None of the columns have an "Order By" value. I checked also for a method which sorts/disables sort but I didn't find any.
If you have a regular relationship, check the related ItemType AND the relationship ItemType for any settings regarding sorting.
If a custom sorting is present, you normally see it due to the arrow in the header column.
If you don´t have this one -> by default Aras sorts by id (or native sorting in sql database), which can lead to mixed up data by default.
- skoleva3 years agoIdeator I
I have a NULL relationship and except the "Order by", I don't see any other option related to sorting. The goal is to disable the custom sorting. In other words, if the user wants to sort by the column "Pos", he should be able to do it, but if he wants to sort by "Name", it shouldn't be possible.
- AngelaIp3 years agoIdeator I
Ah ok, you want to prevent custom sorting completely. Why? It shouldn´t do much harm.
Not sure if what you want to achieve is possible. You can prevent editing of cells, but I don´t think you can prevent sorting.
You maybe can try to overwrite the aria-sort attribute that is used for the column header cells. But there are right now no good Method options available to do Method/Function overwrites in relationships.
"onLoad" Form Method may work a bit, but will probably be overwritten again when users refresh the relationships.
Take a look at aria-sort in core.js, searchGrid.js or _Builder.js in codetree. These are parts of the sorting feature, but changes in these files would apply to all ItemTypes.