WaspDeveloper
Top achievements
Rank 1
WaspDeveloper
asked on 17 Apr 2009, 07:42 PM
You have a great feature on your demo site http://demos.telerik.com/silverlight/default.aspx that if you type in something in the "Search" field on top of the panel bar, only the panel items has that text should show and expand.
I have created a rad PanelBar with items and set the IsTextSearchEnabled to true. Correct me if I'm wrong: I thought that search field is a separate control. But I wonder what to do next to just show the panel items that match the specified text? Are you just looping though the panel bar items to make the unmatched ones "invisible"?
Thanks
7 Answers, 1 is accepted
0
Accepted
Hi Chris,
yes - you are right the search is not part from the control. It is a separate logic that just filters the collection to which the controls is bound.
the IsTextSearchEnabled property is just part from the base ItemsControl and that is why you see it in the RadPanelBar.
Sincerely yours,
Valentin.Stoychev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
yes - you are right the search is not part from the control. It is a separate logic that just filters the collection to which the controls is bound.
the IsTextSearchEnabled property is just part from the base ItemsControl and that is why you see it in the RadPanelBar.
Sincerely yours,
Valentin.Stoychev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Scott McEachern
Top achievements
Rank 1
answered on 25 May 2010, 02:46 PM
Hello Valentin,
We're trying to build a text search capability identical to the one displayed on your Silver demo and the one Chris pointed out last year. Could you possibly share the technique, methods used to filter the items in the tree, and expand the items as you typed / searched the tree?
I'm running into all kinds of headache with the GetContainerFromItem and GetItemFromContainer methods on the ItemContainerGenerator of the TreeViewItem object. I've read many posts online that describe issues with these methods returning null and, while I've been able to battle through most of them, I can't seem to properly hook the Filter method of an AutoComplete box to the ItemsSource of my tree.
Any help / resources you might be able to lend would be very much appreciated.
Thanks,
- Aaron
We're trying to build a text search capability identical to the one displayed on your Silver demo and the one Chris pointed out last year. Could you possibly share the technique, methods used to filter the items in the tree, and expand the items as you typed / searched the tree?
I'm running into all kinds of headache with the GetContainerFromItem and GetItemFromContainer methods on the ItemContainerGenerator of the TreeViewItem object. I've read many posts online that describe issues with these methods returning null and, while I've been able to battle through most of them, I can't seem to properly hook the Filter method of an AutoComplete box to the ItemsSource of my tree.
Any help / resources you might be able to lend would be very much appreciated.
Thanks,
- Aaron
0
Hello Scott McEachern,
We will include a similar example in our power pack distribution which will be available in the middle of June. So far - this is not supported out of the box.
Best wishes,
Valentin.Stoychev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
We will include a similar example in our power pack distribution which will be available in the middle of June. So far - this is not supported out of the box.
Best wishes,
Valentin.Stoychev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Aaron
Top achievements
Rank 1
answered on 28 May 2010, 04:42 PM
Hello Valentin,
That sounds good and we're looking forward to seeing what you guys offer. Do you know if your example will work with hierarchically nested data? That seems to be the biggest issue at the moment, for us.
Searching / sorting / filtering a linear collection of items is no problem using ICollectionView. However, the issue for us is searching / sorting / filter the collection of items inside the collection of items inside a collection of items. Does that make sense?
I have a good idea how the Silverlight demo you created performs the search on the tree of example controls, however we have a tree with thousands and thousands of nodes that goes 3 levels deep. Searching that efficiently has been a real challenge for us.
Thanks again for all your help,
- Aaron
That sounds good and we're looking forward to seeing what you guys offer. Do you know if your example will work with hierarchically nested data? That seems to be the biggest issue at the moment, for us.
Searching / sorting / filtering a linear collection of items is no problem using ICollectionView. However, the issue for us is searching / sorting / filter the collection of items inside the collection of items inside a collection of items. Does that make sense?
I have a good idea how the Silverlight demo you created performs the search on the tree of example controls, however we have a tree with thousands and thousands of nodes that goes 3 levels deep. Searching that efficiently has been a real challenge for us.
Thanks again for all your help,
- Aaron
0
Hello Aaron,
Yes - it is working with hierarhical data.
All the best,
Valentin.Stoychev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Yes - it is working with hierarhical data.
All the best,
Valentin.Stoychev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Pranama Moorthy
Top achievements
Rank 1
answered on 25 Oct 2010, 11:59 AM
Hi Valetine,
Could you please help to share a sample project to show the Filtering of the contents?
Regards,
Pranama
Could you please help to share a sample project to show the Filtering of the contents?
Regards,
Pranama
0
Hello Pranama Moorthy,
Please accept my apology for the delayed response. I prepared a sample project demonstrating how to implement Search, Sort and Filter in the RadPanelBar. Please have a look at it and let me know if it works for you.
Also, you can examine the Filter/Search/Sort demo example of the RadTreeView, which might also help.
All the best,
Tina Stancheva
the Telerik team
Please accept my apology for the delayed response. I prepared a sample project demonstrating how to implement Search, Sort and Filter in the RadPanelBar. Please have a look at it and let me know if it works for you.
Also, you can examine the Filter/Search/Sort demo example of the RadTreeView, which might also help.
All the best,
Tina Stancheva
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items