Grid re-sorts itself after item in grid is selected

Certified Senior Developer

I have a simple interface rule that displays a grid of items sorted by an expiration date. The grid uses a query rule and a CDT for the items listed. My issue is that once the user selects one of the items, that item drops to the bottom of the list. Any idea why it would do this? I don't have any errors; the query rule does not include a 'sort by' and the selection part works just fine. I would also like the user to be able to sort on the other columns (which doesn't work now) but the most troubling issue is that the selected item moves to the bottom of the grid.

GridResortIssue.txt

OriginalPostID-225683

OriginalPostID-225683

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    Out of curiosity - did you try passing the pagingInfo directly into the query, as opposed to pre-querying and then doing toDataSubset? Depending on the situation I'm guessing this could affect the outcome. If you want to see what it would do before dramatically editing your code, though, you might consider just doing the query in a new/unsaved Expression Rule to see the direct output.
Reply
  • 0
    Certified Lead Developer
    Out of curiosity - did you try passing the pagingInfo directly into the query, as opposed to pre-querying and then doing toDataSubset? Depending on the situation I'm guessing this could affect the outcome. If you want to see what it would do before dramatically editing your code, though, you might consider just doing the query in a new/unsaved Expression Rule to see the direct output.
Children
No Data