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

Grid View test if full-text search row is visible

2 Answers 94 Views
GridView
This is a migrated thread and some comments may be shown as answers.
erwin
Top achievements
Rank 1
Veteran
Iron
erwin asked on 06 May 2017, 07:25 AM

The added functionality to the full-text search in 2017.2 is really cool, especially the new close button.

An intuitive way to close the full-text search was on my to-do list for quite some time.

However, I noticed that the AllowSearchRow Property stays true even if the search row was closed/hidden by the user.

What's the best way to test if the full-text search row is currently visible?

So far, I have extended the grids context menu like this:

 

var searchRowMenuItem = new RadMenuItem("Full-text Search (Ctrl+F)");
            searchRowMenuItem.Click += this.searchRowMenuItem_Click;
            searchRowMenuItem.IsChecked = this.AllowSearchRow;

 

2 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 10 May 2017, 08:24 AM
Hello Erwin, 

Thank you for writing.  
 
The AllowSearchRow property controls whether the search functionality in RadGridView is enabled. When you click the close button of the search row, it just hides the row. However, the user is allowed to show the search row again at a later moment by pressing Ctrl + F. The close button just manipulates the MasterView.TableSearchRow.IsVisible property. It is not expected to disable the search functionality.

I hope this information helps. Should you have further questions I would be glad to help.

Regards,
Dess
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
erwin
Top achievements
Rank 1
Veteran
Iron
answered on 12 May 2017, 02:51 PM

Thanks Dess.

Exactly the info I needed

Regards

Erwin

Tags
GridView
Asked by
erwin
Top achievements
Rank 1
Veteran
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
erwin
Top achievements
Rank 1
Veteran
Iron
Share this question
or