lcolombo Posted May 18, 2018 Share Posted May 18, 2018 I can´t add a item in runtime. I'm use this code in the "tmenu" example: procedure TMainForm.UniToolButton9Click(Sender: TObject); begin UniTreeMenu1.Items.AddChild(nil,'Test'); end; Error message with the SourceMenu property of TUniTrreMenu1 set: Error message without the SourceMenu property of TUniTrreMenu1 set: Regards, Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 24, 2018 Administrators Share Posted May 24, 2018 Fixed. Link to comment Share on other sites More sharing options...
lcolombo Posted May 24, 2018 Author Share Posted May 24, 2018 Farshad, Will this fix be available in the next release? Thank you Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 24, 2018 Administrators Share Posted May 24, 2018 Farshad, Will this fix be available in the next release? Thank you Yes Sent from my SM-N950F using Tapatalk Link to comment Share on other sites More sharing options...
lcolombo Posted May 30, 2018 Author Share Posted May 30, 2018 Farshad, this issue was fixed, but now I have others: I'm trying to replace TuniTreeView with TuniTreeMenu in the demo "AllFeaturesDemo" 1.- UniTreeMenu1.Items.Clear() does not work, throws the following ajax error: "Cannot set property 'lastOptions' of undefined" vUniTreeNode := UniTreeMenu1.Items.AddChild(nil, 'Text'); 2.- vUniTreeNode .Visible := true does not work, it does not do anything. 3.- vUniTreeNode .Expanded := aExpand does not work, throws the following ajax error: "Cannot set property 'getNodeById' of undefined". 4.- vUniTreeNode.ImageIndex := 1 does not work, throws the following a ajax error. Regards, 2 Link to comment Share on other sites More sharing options...
albertovesx Posted May 30, 2018 Share Posted May 30, 2018 The same problem Link to comment Share on other sites More sharing options...
Gabriel Posted June 26, 2018 Share Posted June 26, 2018 Farshad, this issue was fixed, but now I have others: I'm trying to replace TuniTreeView with TuniTreeMenu in the demo "AllFeaturesDemo" 1.- UniTreeMenu1.Items.Clear() does not work, throws the following ajax error: "Cannot set property 'lastOptions' of undefined" vUniTreeNode := UniTreeMenu1.Items.AddChild(nil, 'Text'); 2.- vUniTreeNode .Visible := true does not work, it does not do anything. 3.- vUniTreeNode .Expanded := aExpand does not work, throws the following ajax error: "Cannot set property 'getNodeById' of undefined". 4.- vUniTreeNode.ImageIndex := 1 does not work, throws the following a ajax error. Regards, Same issue even with the last version of Unigui Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted June 26, 2018 Administrators Share Posted June 26, 2018 TUniTreeMenu was initially designed as static menu. Unlike a TreeView which is more dynamic a TreeMenu is more static in this regard. I know that Delphi developers are always in seek of manipulating everything at runtime. A habit which comes from VCL programming. Something that is less common in web programming. In time we will add more dynamic capability to TreeMenu, but as I said it was meant to work as a simple static menu placed on left of your screen. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted June 26, 2018 Administrators Share Posted June 26, 2018 @Delphi Developer, Can you please add these requests to support portal? Link to comment Share on other sites More sharing options...
Sherzod Posted June 26, 2018 Share Posted June 26, 2018 @Delphi Developer, Can you please add these requests to support portal? Done Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now