Ulugbek Posted August 16, 2013 Posted August 16, 2013 Hi I want find or stay on the new childitem after add How I can do? Quote
Sherzod Posted August 19, 2013 Posted August 19, 2013 Hi Ulugbek. Try //how to stay after adding a node?... procedure TMainForm.UniButton1Click(Sender: TObject); var AUniTreeNode: TUniTreeNode; begin AUniTreeNode := UniTreeView1.Items.AddChild(UniTreeView1.Selected, 'node1'); UniTreeView1.Selected := AUniTreeNode; UniTreeView1.Selected.MakeVisible; end; sincerely Quote
Ulugbek Posted August 27, 2013 Author Posted August 27, 2013 I add database id parent_id after then I again call procedure FILLGOODS treegoods.fullexpand --but not work (fullexpand) and by function itemsearch I search itemnode if find and stay but all my code not work Quote
Sherzod Posted August 27, 2013 Posted August 27, 2013 Hi Ulugbek. How do you build a tree? (you can give the procedure code FILLGOODS) On what field you want to search (Text, ID, ..., better ID)? Maybe after adding a node, and then save to the database, it is not necessary to re-build the tree (do not call the procedure FILLGOODS). By the way, works for me FullExpand. sincerely 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.