Under Review
Last Updated: 03 Jan 2020 04:21 by ADMIN
Kasim
Created on: 18 Dec 2019 05:46
Category: Grid
Type: Feature Request
1
How to implement SearchRow in RadGrid for ASP.Net similar to SearchRow in WinForms RadGridView

The SearchRow in RadGridView WinForms is extremely good.

https://docs.telerik.com/devtools/winforms/controls/gridview/rows/search-row 

How can we implement the same in ASP.Net Ajax RadGrid?

5 comments
ADMIN
Eyup
Posted on: 03 Jan 2020 04:21

Hi Kasim,

 

I am afraid this exact functionality is currently not provided by RadGrid for AJAX.

 

Regards,
Eyup
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.
Kasim
Posted on: 29 Dec 2019 03:40

Dear Eyup,

All the links you shared below are pointing towards the filtering of the data. My request is not for the filtering of grid rows.

Let me rephrase my request.

  1. I wish to highlight part of the cells within the grid where the typed text is found.
  2. Count of the found text to be displayed next to the search control
  3. Then there should be a back and forward buttons to navigate to the cells where the text is found.

RadGrid  to offers a build-in search functionality available for both end users and developers. The search mechanism executes in a separate thread which leaves the UI responsive at all times. To enable the search row for end users all you have to do is set the AllowSearchRow property of RadGrid to true:

this.radGrid1.AllowSearchRow = true;

Searched text is only highlighted by the pre-set highlight format. No filter is applied on the grid.

The end user can select in which columns to perform searching by the provided Search in columns drop down. Thus, the highlighted result will be displayed in the specified columns only. You can specify whether the search functionality is enabled for a given column by setting the column's AllowSearching property.

Pressing Ctrl+F will show the search row if it is hidden. The Esc key will close the search row.

Please see the attached screenshot for what is required.

 

 

 

 

ADMIN
Eyup
Posted on: 27 Dec 2019 09:13

Hi Kasim,

 

I'm glad you like the search feature provided by our toolset for WinForms technology.

For AJAX you have 2 built-in options and 1 custom to achieve a similar behavior:

1. RadFilter:
https://demos.telerik.com/aspnet-ajax/filter/examples/integration/defaultcs.aspx

2. Excel-like filtering:
https://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/excel-like-filtering/defaultcs.aspx

3. Custom implementation - RadGrid provides powerful Template customization where the user can implement whatever he prefers. For this case you can use the CommandItemTemplate with a combination of RadMenu, RadTextBox or RadSearchBox and the client-side filter() method:
https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/client-side-programming/gridtableview-object/methods/filter

There is also one other possibility if you are not using paging:
https://www.telerik.com/support/code-library/quick-search---filtering-rows-depending-on-entered-text-instantly-when-paging-is-disabled

 

Regards,
Eyup
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.
Kasim
Posted on: 22 Dec 2019 03:39

Hi Rumen,

With the SearchRow, I don't wish to filter the rows. The intention here is to highlight the typed text wherever found in the grid and have option to navigate through the found cells.

Check out the link shared for Winforms gridview search row implementation.

ADMIN
Rumen
Posted on: 20 Dec 2019 12:46

Hi Kasim,

Can you please see whether the following demo satisfies the requirements of your feature request: Grid Filtered By SearchBox?

If not check out this Kendo Grid demo https://demos.telerik.com/kendo-ui/grid/search-panel and let us know if it better covers your scenario than the RadGrid's one?

 

Best Regards,
Rumen
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.