Search properties inside of base class

Hello,

I'm looking for a way to search properties of objects inside of my base class. As an example, take the "immediate searching" example from your documentation (https://blazor.syncfusion.com/documentation/datagrid/searching#immediate-searching) as it comes close to my implementation and extend the "Order" class with the following:

public class Order
{
    public int OrderID { get; set; }
    public string CustomerID { get; set; }
    public bool Verified { get; set; }
    public double? Freight { get; set; }
public List<Item> Items { get; set; } }

public class Item { public int ItemID { get; set; } public string Name { get; set; } }

Now I want the search function (triggered by "OnInput" in the example) to include the item name from my order. So when I enter "orange", I want to see all orders that included oranges.

Thank you for your help!


3 Replies

SP Sarveswaran Palani Syncfusion Team June 3, 2022 01:09 PM UTC

Hi Marco,


Thanks for your patience.


We have analyzed your query and we understand that you want to perform data operation in Grid column which has one to many relation. Currently, we don’t have support for this feature. Already, we have considered a feature task to implement this feature “Provide data operation for one-to-many relationship columns” request and added this to our feature request list. Based on specific parameters including product vision and technological feasibility we will implement this feature in any of our upcoming releases.


Please follow up on the below feedback report page link for future updates regarding the release timeline of this feature.


https://www.syncfusion.com/feedback/12731/provide-data-operation-for-one-to-many-relationship-columns


Regards,

Sarveswaran PK



MW Marco Wollschläger June 7, 2022 06:17 AM UTC

Hi Sarveswaran,

I voted for the feature and will wait for its implementation thought this will probably take another few years. I will try to make a workaround with a dynamic string property on the main object in the mean time.

Still thank you for your explanation and the link.

Regards,

Marco



SP Sarveswaran Palani Syncfusion Team June 8, 2022 05:28 PM UTC

Hi Marco,


Thanks for your update and voting.


We’ll try to implement this feature as soon as possible from our side.


In the meantime, Please get back to us if you have any further queries.


Regards,

Sarveswaran PK


Loader.
Up arrow icon