Completed
Last Updated: 05 Feb 2019 15:11 by ADMIN
Mas
Created on: 19 Dec 2018 14:44
Category: UI for WinForms
Type: Feature Request
1
FIX. RadGridView - provide API for clearing the text in the search text box

Until released the text can be cleared this way:

GridSearchCellElement searchCell = this.radGridView1.TableElement.FindDescendant<GridSearchCellElement>();
if (searchCell != null)
{
    searchCell.SearchTextBox.Text = "";
}

1 comment
Dimitar
Posted on: 05 Feb 2019 15:09

Hello,

The text can be cleared with the following code:
this.radGridView1.MasterView.TableSearchRow.Search(""); 
or

this.radGridView1.MasterView.TableSearchRow.Search(null);

This used to work in older versions. The actual issue is that if one use the Search method of the row, the query text was not synced with the text box at all.

A fix will be available in Telerik UI for WinForms version R1 2019 SP1.

Regards,
Dimitar