Hello,
I am trying to implement a filter to treeview items based on a textbox value used as a search string. I figured I could evalute the FullPath property of a treeviewitem to insure all parent/children were included however the FullPath property seems to be coming across as Empty for me. Is there something I am missing? Here is my code:
I am trying to implement a filter to treeview items based on a textbox value used as a search string. I figured I could evalute the FullPath property of a treeviewitem to insure all parent/children were included however the FullPath property seems to be coming across as Empty for me. Is there something I am missing? Here is my code:
Private Function NameFilter(ByVal item As RadTreeViewItem) As Boolean
If item.HasItems Then item.Items.Filter = New Predicate(Of Object)(AddressOf NameFilter)
Return item.FullPath.Contains(txtSearchList.Text)
End Function