neo4a Posted August 7, 2019 Share Posted August 7, 2019 (Maybe it is related to a bug reported here.) However, if you try to clear a TUnimNestedList bei calling (myList as TUnimNestedList).items.clear There is one orphaned visual entry left at least. Clicking on this entry will lead to an error ("node not exists"); Which js-call will also empty TUnimNestedList visually? Thanks. Edit: And before asking for a sample project to reproduce this behavior, please try to modify "touch - AllFeatures" demo project in procedure ConstructNavigator... Link to comment Share on other sites More sharing options...
neo4a Posted August 7, 2019 Author Share Posted August 7, 2019 Sorry, posted this bug already here some months ago ... but would like to see a solution right now. Link to comment Share on other sites More sharing options...
Sherzod Posted August 7, 2019 Share Posted August 7, 2019 43 minutes ago, neo4a said: but would like to see a solution right now. Hi, Try this solution for now: procedure TMainmForm.UnimButton1Click(Sender: TObject); begin with UnimNestedList1 do begin Items.Clear; JSInterface.JSCall('getStore().getRoot().removeAll', []); end; end; 1 Link to comment Share on other sites More sharing options...
neo4a Posted August 7, 2019 Author Share Posted August 7, 2019 7 minutes ago, Sherzod said: Hi, Try this solution for now: Thank you. This is working now. 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