Jump to content

UniTreeMenu issues


Gabriel

Recommended Posts

Hi, 

 

I'm testing the UniTreeMenu (replacing UniTreeView with UniTreeMenu) and i found some issues.

 

1.- There is no method FullExpand or FullCollapse

2.- There is no events OnLoaded or OnDblClick

3.- I was trying to make a SearchTree (like UniTreeView) and it fails

4.- The procedure UniTreeMenu.Items.Clear fail.

 

Both items 3 and 4 shows an Ajax Error "Cannot set property 'lastOptions' of undefined", but the UniTreeMenu.Items.Clear fails from time to time.

 

Also, has anyone been able to set the font size? how?

 

 

Has anyone have a similar experience?

 

 

 

I'm using the last release

 

Regards 

 

Gabriel

Link to comment
Share on other sites

Hi,

 

1.- There is no method FullExpand or FullCollapse

 

Try this solution for now:

 

1. First, set this config:

 

function treeMenu.beforeInit(sender, config)

function treeMenu.beforeInit(sender, config)
{
    config.singleExpand=false;
}

2. FullExpand:

procedure TMainForm.UniButton1Click(Sender: TObject);
begin
  UniTreeMenu1.JSInterface.JSCode(#1'.getStore().data.items.forEach(function(el){el.expand()});');
end;

3. FullCollapse:

procedure TMainForm.UniButton1Click(Sender: TObject);
begin
  UniTreeMenu1.JSInterface.JSCode(#1'.getStore().data.items.forEach(function(el){el.collapse()});');
end;
Link to comment
Share on other sites

2.- There is no events OnLoaded

 

You can try to use this JS event:

 

function store.load(sender, records, successful, operation, eOpts)

function store.load(sender, records, successful, operation, eOpts)
{
    //
}
Link to comment
Share on other sites

For what purpose do you want to use it?

 

We are developing an application where we have a menu of about 90 items (nodes and sub nodes and sub sub nodes). We are currently using a UniTreeView with the OnDblClick event to ensure the access to the correct form (due the fact that we have dataset of over 1M records - payroll)  

 

I'm afraid that without that event our clients might open the incorrect form. Thats all.

Link to comment
Share on other sites

Can you please post these requests to Support Portal.

 

That said, TreeMenu is a very simple component. We will improve it constantly. However, it can never be as functional as a TreeView.

We are posting the request. 

 

Thank You

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