This is a migrated thread and some comments may be shown as answers.

Disable Full Text Search

5 Answers 354 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 28 Apr 2016, 01:03 PM
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.

5 Answers, 1 is accepted

Sort by
0
Accepted
Yoan
Telerik team
answered on 28 Apr 2016, 01:28 PM
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.
0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 06 Jul 2016, 06:45 AM

Hello Yoan,

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

0
Yoan
Telerik team
answered on 08 Jul 2016, 02:06 PM
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.
0
Mark
Top achievements
Rank 1
answered on 18 Feb 2019, 05:15 PM
You did not explain how to turn the feature off!  I have tried, both in XAML and in code (c#) to set ShowSearchPanel = false but the search panel is still displayed.

How can I hide the panel?
0
Dilyan Traykov
Telerik team
answered on 21 Feb 2019, 01:22 PM
Hello Mark,

I tried to replicate your issue in a small sample project, however, the search panel is correctly hidden at my end when using the R1 2019 version of the controls.

Could you please have a look at the attached project and let me know if I'm missing something of importance? If possible, please specify how I can update the project so that the issue is reproduced and I will gladly assist you further.

Thank you in advance for your cooperation. I look forward to your reply.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Chris
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Mark
Top achievements
Rank 1
Dilyan Traykov
Telerik team
Share this question
or