Is class table nested with different class as a collapsable row a thing?

Image_4980_1728472143953

I'm trying to make this above example work, where I have two classes:Customer (with properties no,name and tel) and Receipt (with properties name,date,receiptid,value). I want to implement a feature that allows me to collapse the customer details and display their corresponding receipt details when a customer name is tapped.  I would like to show the receipt details below the customer row when it is collapsed, corresponding specifically to that customer.

  1. I'm attempting to filter the receipts based on the customer's name, but I don't know how to add new rows below customer details , which have receipt details.
  2.  I tried grouping the receipts based on name but unsure how to set the group caption in  to display the customer details instead.

  3. Is there better way or a syntax i do not know of?  

Sorry if it's convoluted, i'd appreciate any help.


3 Replies 1 reply marked as answer

AP Abinesh Palanisamy Syncfusion Team October 10, 2024 07:09 AM UTC

Hi SYAZATUL,

As of now, the DataGrid does not support preview rows or expandable rows. These features could be used to display additional information for each row. We have already considered your request as a feature. We will implement this feature in any of our upcoming releases. At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We appreciate your patience and understanding until then. You can follow up with the below feedback for further details,


Feedback link: 34627


Regards,

Abinesh P



SB SYAZATUL BATRISYA BINTI ADZANI BI22110464 replied to Abinesh Palanisamy October 10, 2024 10:25 AM UTC

i figured it out , i regexp the summaryvalue in buildGroupCaptionCellWidget to extract the key and use it to fetch 1 row of the Customer class, then return it as a 1 row table instead of summaryValue to simulate a collapsable row. Funky but it works

Image_3058_1728555918124


Marked as answer

AP Abinesh Palanisamy Syncfusion Team October 10, 2024 01:23 PM UTC

Hi SYAZATUL,

Based on the provided details, we hope you’ve achieved the desired behavior on your end, though it may not fully meet your expectations. For a better experience and to fully achieve the expected outcome, we have already considered your feature request and will implement it in one of our upcoming releases, as mentioned in our previous response. We appreciate your patience and understanding until then.


Regards,

Abinesh P


Loader.
Up arrow icon