TextSearch on GridView

4 posts, 0 answers
  1. Hiroshi
    Hiroshi avatar
    5 posts
    Member since:
    Nov 2013

    Posted 16 Apr 2014 Link to this post

    Hello,

    I have a datagrid, and I would like to be able to select an item by typing some letters, similar to what does the TextSearch static class of WPF. I would like to be able to specify which property of my view model should be used for this search (ie. like the TextSearch.TextPath attached property). However, nether the WPF TextSearch nor Telerik's TextSearch seems to work, and the GridView does not have the IsTextSearchEnabled property.

    Is there a way to easily achieve such behavior? Or should I re-implement it completely myself?

    Thanks.
  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1219 posts

    Posted 18 Apr 2014 Link to this post

    Hi,

    I believe that the following SDK example should be similar to the functionality that you require: Locate row as you type. Can you please refer to it and tell us whether such an approach is appropriate for your scenario?

    Regards,
    Ivan Ivanov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Hiroshi
    Hiroshi avatar
    5 posts
    Member since:
    Nov 2013

    Posted 24 Apr 2014 in reply to Ivan Ivanov Link to this post

    Hello,

    Nope, this is not exactly what I want to do. This sample uses a TextBox to search in the grid view. I just want the classic TextSearch feature of WPF. Like in Window Explorer, if you select C:\ and give focus on the listview on the right, if you press P on your keyboard it should select automatically Program Files (or the first folder starting with 'P').

    I believe the WPF data grid does not support the WPF TextSearch, so I was wondering if there is a way to have Telerik's TextSearch work with Telerik's GridView.
  4. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1219 posts

    Posted 29 Apr 2014 Link to this post

    Hello,

    It seems that you are right. Currently we cannot claim support for TextSearch with RadGridView.

    Regards,
    Ivan Ivanov
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top