Skip to content

Instantly share code, notes, and snippets.

@yavor87
Created February 8, 2019 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yavor87/e134d68bffd5f71dc07ae371611be39f to your computer and use it in GitHub Desktop.
Save yavor87/e134d68bffd5f71dc07ae371611be39f to your computer and use it in GitHub Desktop.
GridView FullText search from outside TextBox
<TextBox TextChanged="TextBox_TextChanged" />
<telerik:RadGridView x:Name="grid" CanUserSearch="False" />
private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
{
string text = (sender as TextBox).Text;
var command = Telerik.Windows.Controls.RadGridViewCommands.SearchByText as System.Windows.Input.RoutedUICommand;
command.Execute(text, this.grid);
}
@SHolvoet
Copy link

SHolvoet commented Jan 6, 2023

Thank you very much. I was looking for a solution for this for at least 2 hours and this works like a charm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment