This is a migrated thread and some comments may be shown as answers.

TreeView DataSource filter after calling load()

1 Answer 109 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Rod
Top achievements
Rank 1
Rod asked on 07 Jun 2017, 07:45 PM

Dojo example: http://dojo.telerik.com/EZUfO/2

In this example, I want to display some nodes in the treeview (directories), and hide other nodes (files). If you expand "dir1" and "dir2" you can see that the filter works as expected (/dir1/dir2/file is hidden). I also manually call load() when selecting a treeview node, so that I can reference a node's children simply by clicking on it (see select event callback).

Steps to reproduce undesired behavior:

  1. Expand dir1
  2. Click on dir2 (don't expand it)
  3. Click on dir1
  4. Expand dir2

After step 4 you should see that /dir1/dir2/file is shown in the treeview. Is this expected behavior? I would like /dir1/dir2/file to always stay hidden, according to the datasource's filter.

1 Answer, 1 is accepted

Sort by
0
Rod
Top achievements
Rank 1
answered on 07 Jun 2017, 08:01 PM
Actually, could a moderator please delete this thread?
Tags
TreeView
Asked by
Rod
Top achievements
Rank 1
Answers by
Rod
Top achievements
Rank 1
Share this question
or