The tree does not work correctly

QuestionsThe tree does not work correctly
Rudyuk Serhii asked 3 years ago

Good afternoon.

In tree mode, when you add a branch, it branches randomly into a random branch, not into the selected branch. It also happens in demo-examples.

How do I make an added branch add to the selected item?

1 Answers
Abu Ghufran answered 3 years ago

There is an issue with loaded:true settings. When you turn it false, 'loaded'=>false it will add new node under the selected row.

$grid["treeConfig"] = array('id'=>'emp_id', 'parent'=>'boss_id', 'loaded'=>false, 'column'=>'name');

I've updated the live demo.

Your Answer

17 + 12 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?