Created
February 8, 2019 10:53
-
-
Save yavor87/e134d68bffd5f71dc07ae371611be39f to your computer and use it in GitHub Desktop.
GridView FullText search from outside TextBox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TextBox TextChanged="TextBox_TextChanged" /> | |
<telerik:RadGridView x:Name="grid" CanUserSearch="False" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you very much. I was looking for a solution for this for at least 2 hours and this works like a charm.