Filter on GridForeignColumn - Clear Filter does not work.

I have a grid with a GridForeignColumn:

<GridForeignColumn Field="@nameof(ArticleModel.ArticleGroupId)" ForeignDataSource="@_articleGroups" ForeignKeyField="Id" ForeignKeyValue="Name" HeaderText="Test" Width="100" AutoFit="true" />

FIlter settings in the grid are "FilterType.Menu".

I can set a filter, which works fine. But when I try to clear the filter (button in filter menu), nothing happens. I've also tried with OnActionBegin and OnActionComplete, but clicking on the clear button sends a "Filtering" event, not "ClearFiltering".

All other (non GridForeignColumn) work as expected.

Kind regards

Roland


3 Replies 1 reply marked as answer

RS Renjith Singh Rajendran Syncfusion Team December 1, 2021 10:01 AM UTC

Hi Roland, 
 
Greetings from Syncfusion support. 
 
We are not clear about the exact scenario you are facing the reported problem. We checked clear filtering by preparing a sample with foreign key column. But we could not face any difficulties when clear filtering in Grid using the Clear button in Menu filter dialog. We are attaching the sample for your reference, please download the sample from the link below, 
 
Kindly refer the above attached sample, and if you are still facing any difficulties then the following details would be helpful for us to proceed further. 
 
  1. Share a simple issue reproducing sample based on your scenario for us to validate.
  2. Or if possible reproduce the problem with the above attached sample.
  3. Share the exact scenario or proper replication procedure.
  4. Share a video demo showing the replication of the problem you are facing.
  5. Share Syncfusion version details.
 
The provided information will help us analyze the problem, and provide you a solution as early as possible. 
 
Regards, 
Renjith R 


Marked as answer

RP Roland Prantl December 2, 2021 08:48 AM UTC

Hi Renjith,

thank you for the reply. I wanted to create a sample for you, but could not reproduce the problem either. I had the same column with a Template, and the Foreign Column as a test. When I removed the templated column, all worked fine.

So it seems, that having the same column in two different ways caused the problem, but now all works fine.

Regards

Roland



VN Vignesh Natarajan Syncfusion Team December 3, 2021 06:45 AM UTC

Hi Roland,  

Thanks for the update.  

We are glad that your query has been resolved.  

Please get back to us if you have further queries.  

Regards, 
Vignesh Natarajan 


Loader.
Up arrow icon