Filtering in Hierarchy Grid using Data grid

Hi, I am currently using a hierarchy grid based on data grid like the following demo. I wanted to know how filtering and sorting could be achieved in this hierarchy data grid.  

Q1.  Filtering seems to not be working if my DataSource is refined with linQ operators .

Q2.is there a way to group, order and select grid data in Sf grid?

https://blazor.syncfusion.com/demos/datagrid/hierarchy-grid?theme=bootstrap5

<SfGrid Data="@Instance" TValue="Tvalue"/>

@code{

public IEnumerable< Tvalue > Instances { get; set; }

//I am using linQ operators to refine my data Input.

Instances = results.OrderByDescending(x=>x.parameter).GroupBy(x =>x.parameter2).Select(x =>x.First());


}

thanks

ym


1 Reply

NP Naveen Palanivel Syncfusion Team July 15, 2022 04:37 AM UTC

Hi Ym,


Thanks for contacting Syncfusion support.


Query1:”  there a way to group, order and select grid data in Sf grid


We have already discussed this topic in our UG documentation. Kindly refer the documentation link for more details


Reference :


Group - https://blazor.syncfusion.com/documentation/datagrid/grouping


Order- https://blazor.syncfusion.com/documentation/datagrid/sorting


Select - https://blazor.syncfusion.com/documentation/datagrid/selection


Query2 :” Filtering seems to not be working if my DataSource is refined with linQ operators 


We have checked your query and we are quite unclear about the exact issue you are facing. So kindly share the below details to validate further at our end.


  1. Share us entire grid code snippet.
  2. Share us some more details regarding your exact requirement about filter.
  3. Share us the video demonstration explaining  the issue.
  4. If possible share us an simple issue reproduceable sample.


The above-requested details will be very helpful for us to validate the reported query at our end and provide the solution as early as possible.


Regards,

Naveen Palanivel


Loader.
Up arrow icon