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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...