The text search field and IsTextSearchEnabled

8 posts, 1 answers
  1. WaspDeveloper
    WaspDeveloper avatar
    6 posts
    Member since:
    Apr 2009

    Posted 17 Apr 2009 Link to this post


    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
  2. Answer
    Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 20 Apr 2009 Link to this post

    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.
  3. DevCraft banner
  4. Scott McEachern
    Scott McEachern avatar
    11 posts
    Member since:
    Feb 2010

    Posted 25 May 2010 Link to this post

    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
  5. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 28 May 2010 Link to this post

    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.
  6. Aaron
    Aaron avatar
    6 posts
    Member since:
    Nov 2008

    Posted 28 May 2010 Link to this post

    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
  7. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 02 Jun 2010 Link to this post

    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.
  8. Pranama Moorthy
    Pranama Moorthy avatar
    26 posts
    Member since:
    Jun 2010

    Posted 25 Oct 2010 Link to this post

    Hi Valetine,
                           Could you please help to share a sample project to show the Filtering of the contents?

    Regards,
    Pranama
  9. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 28 Oct 2010 Link to this post

    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
    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
Back to Top
DevCraft banner