RadGridViewCommands stops working sometimes.

1 Answer 55 Views
GridView
Martin
Top achievements
Rank 2
Iron
Iron
Iron
Martin asked on 23 Mar 2023, 11:34 AM

I have a RadGridView where i've replaced the "Full Text Search" with a custom control (TextBox + Label) 

I'm using a Debouncer to collect text changes from the Textbox and then after 300msec - do the search:


if (e.PropertyName == "Query")
{
	debounce.Debounce(() =>
	{
		Dispatcher.Invoke(() =>
		{
			FilterByQuery();
		});
	});
}
FilterByQuery() : 
var searchBytextCommand = RadGridViewCommands.SearchByText as RoutedUICommand;
searchBytextCommand.Execute(Query, radgrid);

Query = String property

radgrid = x:name of the RadGridView.

at some random point in time of the lifetime of the WPF program, this function stops working !

- I dont have any other case of the Debouncer stops working so i trust that it's not the issue. 

- WPF Databinding and PropertyChanged events are also working 1000 other places in the program without failing, so i trust that they work too.

- This leads me to believe that the RadGridViewCommands might have an issue.. 

 

Martin Ivanov
Telerik team
commented on 28 Mar 2023, 08:47 AM

This isn't a known issue and it is not clear what exactly happens. Would it be possible to send over a project showing the issue?

1 Answer, 1 is accepted

Sort by
0
Accepted
Martin
Top achievements
Rank 2
Iron
Iron
Iron
answered on 26 Feb 2024, 08:49 AM

After changing the Debouncer with another, this issue has been fixed. 

apparantly there must have been a race condition issue in its code.

Tags
GridView
Asked by
Martin
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Martin
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or