This is a migrated thread and some comments may be shown as answers.

Filter input field is cleared

1 Answer 11 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 24 Sep 2019, 07:14 AM
I often go into grid live / production and click the filter icon and select "Contains" and then I enter the text "Manifest".

This is great as it shows me all the Manifest activity,

During busy periods on the activity grid on live / production is often getting updated with new records coming in on the live signalR feed.

When new records come in filter continually gets reset. So If I select "Contains" on the filter it automatically gets changed to "Is equal to" when a new activity record comes in. When I try and type in "manifest" in the filter textbox this automatically gets cleared out when a new record comes in.

Not the end of the world as I can work around it but if there is any solution to this that would be great.

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 26 Sep 2019, 06:13 AM

Hi Andrew,

 

When the Grid is bound using SignalR it will be redrawn each time new data is pushed to it. Thus, actions like filtering can be interrupted if new data is received at the same time. 

With that said, I can suggest couple of options that can improve the behavior in this scenario. You can set the default filter operator to be Contains. This way there will be no need to change it every time. Like in the example below:

https://dojo.telerik.com/eKEzISoj

 

Another approach you can use is to add an external input and a button next to the Grid. When the button is clicked use the test entered in the input and call the filter method for the Grid DataSource to show the relevant data. 

 

Regards,
Viktor Tachev
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.
Tags
Grid
Asked by
Andrew
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or