Last Updated: 08 Apr 2016 11:42 by ADMIN
Dess | Tech Support Engineer, Principal
Created on: 16 Oct 2015 11:30
Category: TreeView
Type: Bug Report
FIX. RadTreeView - incorrect nodes order when DataSource is refreshed while a filter is applied
To reproduce: use the attached sample project and follow the steps:

1. Filter by "Jo".
2. Press the "Refresh" button.
3. Press the "Clear Filter" button.

Note: if there is no applied filter when rebinding, the nodes order is correct. Please refer to the attached gif file.

Workaround: clear the filter before setting the DataSource property and restore ethe filter afterwards:
string filter = this.radTreeView1.Filter + "";
this.radTreeView1.Filter = "";
this.radTreeView1.DataSource = dt;
this.radTreeView1.DisplayMember = "Name";
this.radTreeView1.ValueMember = "Id";
this.radTreeView1.Filter = filter;