Jump to content

Descending TreeGrid Order


Servant5166

Recommended Posts

Hi,

 

Can you try this approach for now ?!

 

For example:

 

property:0 -> 0 - ID index

 

UniDBTreeGrid1 -> ClientEvents -> ExtEvents -> Ext.data.TreeStore [store] -> function store.load:

function store.load(sender, node, records, successful, eOpts)
{
    var me=sender;
    me.remoteSort=false;
    me.sort({property:0, direction:"DESC"});
}

Best regards,

Link to comment
Share on other sites

Hi,

 

Can you try this approach for now ?!

 

For example:

 

property:0 -> 0 - ID index

 

UniDBTreeGrid1 -> ClientEvents -> ExtEvents -> Ext.data.TreeStore [store] -> function store.load:

function store.load(sender, node, records, successful, eOpts)
{
    var me=sender;
    me.remoteSort=false;
    me.sort({property:0, direction:"DESC"});
}

Best regards,

Hi,

 

I can't find the function Ext.data.Treestore you mention. 

 

I using Delphi 10.2

Link to comment
Share on other sites

Hi,

 

"I couldn't reproduce this..."

 

Maybe you need this?:

function store.load(sender, node, records, successful, eOpts)
{
    var me=sender;
    me.remoteSort=false;
    me.sort({property:0, direction:"DESC"});
    me.grid.getSelectionModel().select(0);   //<-------------
}

Best regards,

Link to comment
Share on other sites

Hi,

 

I've attached a screenshot to demonstrate the issue.

 

At the lower right of the graphic, you'll see the DBTreeGrid scrollbar which is at the bottom.

The record at the top of the DBTreeGrid is highlighted because I see the contract number in the status bar.

 

Thanks for your help.

 

 

post-4620-0-77637000-1514832295_thumb.png

Link to comment
Share on other sites

  • 8 months later...

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...