Gabriel Posted May 29, 2018 Posted May 29, 2018 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 Quote
Administrators Farshad Mohajeri Posted May 29, 2018 Administrators Posted May 29, 2018 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. Quote
Sherzod Posted May 29, 2018 Posted May 29, 2018 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; Quote
Sherzod Posted May 29, 2018 Posted May 29, 2018 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) { // } Quote
Sherzod Posted May 29, 2018 Posted May 29, 2018 2.- There is no events OnDblClick For what purpose do you want to use it? Quote
Gabriel Posted May 29, 2018 Author Posted May 29, 2018 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. Quote
Gabriel Posted May 29, 2018 Author Posted May 29, 2018 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.