Jump to content

TUnimNestedList.items.clear not working


neo4a

Recommended Posts

(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

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;

 

  • Like 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...