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

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