Jump to content

TUniDBTreeGrid Does Not Respect The Sort Order Of A Query


Frederick

Recommended Posts

I have a PostgreSQL query with an "order by shortcode, code" parameter. When a TUniDBTreeGrid's datasource is set to it, the code order is not followed as the query correctly shows.

What could be happening here?

--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1539)
 

tunidbtreegridsortorder.png

Link to comment
Share on other sites

On 12/4/2020 at 7:54 PM, Frederick said:

I have a PostgreSQL query with an "order by shortcode, code" parameter. When a TUniDBTreeGrid's datasource is set to it, the code order is not followed as the query correctly shows.

What could be happening here?

Hello,

How can we reproduce this issue?

Link to comment
Share on other sites

  //设置排序字段
  treeMenus.ColumnByName('Serial').Sortable := True;
  //自动排序JS
  treeMenus.ClientEvents.ExtEvents.Values['store.load'] := ' function store.load(sender, records, successful, operation, eOpts){'
                                                         + '   sender.remoteSort = false;'
                                                         + '   sender.sort({property:' + IntToStr(treeMenus.ColumnByName('Serial').Index) + ',direction:"ASC"});'
                                                         + ' }';

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...