tag:blogger.com,1999:blog-6507247203309841795.post4062128996417296061..comments2023-12-28T11:48:55.535+02:00Comments on Just code: Filtering hierarchical data and another TreeView bugTamir Khasonhttp://www.blogger.com/profile/10080563963497874781noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-6507247203309841795.post-57388764356249188452008-02-04T22:27:00.000+02:002008-02-04T22:27:00.000+02:00You should get FIRED from whatever job you hold fo...You should get FIRED from whatever job you hold for not formatting that code. Color is not enough. I just had an epileptic seizure from trying to read it.Eric Rodewaldhttps://www.blogger.com/profile/02937457698922962805noreply@blogger.comtag:blogger.com,1999:blog-6507247203309841795.post-23626895692017866412007-09-06T08:12:00.000+03:002007-09-06T08:12:00.000+03:00if all the child elements of treeview item node a...if all the child elements of treeview item node are filtered out, i dont want to show the expand/collapse option for that node.At present after I click on the node,this disappears.How to overcome this problem.For eg: if test1 to test 5 elements are filtered out,item 1 would still provide scope for expansion.After I click on item 1 the expand/collapse disappears.Please help.Suvyaktahttps://www.blogger.com/profile/11080526792894205792noreply@blogger.comtag:blogger.com,1999:blog-6507247203309841795.post-978966255564459762007-07-23T18:46:00.000+03:002007-07-23T18:46:00.000+03:00If you use the following as your OnExpanded handle...If you use the following as your OnExpanded handler it should work (it's working in my test project). I think the key is just making sure the original sender of the event if the treeviewitem. Like I said ... it is working in my project so just let me know if you want the full source.<BR/><BR/>TreeViewItem item = e.OriginalSource as TreeViewItem;<BR/>if (item != null) <BR/>{<BR/> mglickhttps://www.blogger.com/profile/11080056216881082965noreply@blogger.comtag:blogger.com,1999:blog-6507247203309841795.post-63310361283567422142007-07-23T18:26:00.000+03:002007-07-23T18:26:00.000+03:00This comment has been removed by the author.mglickhttps://www.blogger.com/profile/11080056216881082965noreply@blogger.com