Disable Full Text Search

4 posts, 1 answers
  1. Chris
    Chris avatar
    1 posts
    Member since:
    Sep 2012

    Posted 28 Apr Link to this post

    We recently upgraded to the 2016 Q1 Telerik control library to address some bugs in previous versions.  However, the new full text search in the RadGridView has broken an existing feature within our product.  I need to be able to either turn this off completely, or change the keyboard mapping to something other than Ctrl+F.  How can this be done?  Thanks.
  2. Answer
    Yoan
    Admin
    Yoan avatar
    1066 posts

    Posted 28 Apr Link to this post

    Hello Chris, 

    You can check the following help article - Keyboard Command Provider. There you can find an example how to make the changes for the behavior when pressing the Enter key. You can use the same approach for the Ctrl+F combination. It would be something similar to the following code snippet:
    public class CustomKeyboardCommandProvider : DefaultKeyboardCommandProvider
       {
           private GridViewDataControl parentGrid;
           private DefaultKeyboardCommandProvider defaultKeyboardProvider;
           private CustomKeyboardCommandProvider customKeyboardProvider;
           public CustomKeyboardCommandProvider(GridViewDataControl grid)
               : base(grid)
           {
               this.parentGrid = grid;
           }
           public override IEnumerable<ICommand> ProvideCommandsForKey(Key key)
           {
               List<ICommand> commandsToExecute = base.ProvideCommandsForKey(key).ToList();
     
               if (key == Key.F && Keyboard.IsKeyDown(Key.LeftCtrl))
               {
                   commandsToExecute.Clear();
               }
     
               return commandsToExecute;
     
           }
       }

    Please let me know if you need further assistance on this.

    Regards,
    Yoan
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Patrick
    Patrick avatar
    372 posts
    Member since:
    Aug 2012

    Posted 06 Jul in reply to Yoan Link to this post

    Hello Yoan,

    it would be much more interesting to add a CanUserSearch property. We already have the IsFilteringAllowed, IsManipulationEnabled, CanUserFreezeColumns, CanUserSortColumns, ...

  5. Yoan
    Admin
    Yoan avatar
    1066 posts

    Posted 08 Jul Link to this post

    Hello Patrick,

    Indeed, your suggestion is reasonable. I've created a feature request in our system. You can follow it in our feedback portal - Add a property to control whether RadGridView's TextSearch functionality is enabled.

    Regards,
    Yoan
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top