Grid in grid
We have a planning tool build with the sfdatagrid. On each planning line we want to have a subgrid in the last column containing information on the people using the planned transport. Is there somebody who has build a grid this way and wants to share a sample.
Transport Departure Arrival
Bus1 9.30 10.03
Mary 1 seat
Hank 2 seats
Bus2 9.30 10.03 Button show passengers
Bus1 9.30 10.03 Button show passengers
Bus3 9.30 10.03 Button show passengers
Bus1 9.45 10.45
Peter 2 seats
Tim 1 seat
Frank 3 seats
SIGN IN To post a reply.
3 Replies
MA
Mohanram Anbukkarasu
Syncfusion Team
November 26, 2019 12:57 PM UTC
Hi Martin,
Thanks for contacting Syncfusion support.
Your requirement for creating GridTemplateColumn by loading SfDataGrid as DataTemplate can be achieved as shown in the below code example.
Code example:
|
<syncfusion:SfDataGrid.Columns>
<syncfusion:GridTextColumn MappingName="Transport"/>
<syncfusion:GridTextColumn MappingName="Departure" />
<syncfusion:GridTextColumn MappingName="Arrival"/>
<syncfusion:GridTemplateColumn MappingName="Passengers">
<syncfusion:GridTemplateColumn.CellTemplate>
<DataTemplate>
<syncfusion:SfDataGrid ItemsSource="{Binding Converter={StaticResource itemsSourceConverter}}"/>
</DataTemplate>
</syncfusion:GridTemplateColumn.CellTemplate>
</syncfusion:GridTemplateColumn>
</syncfusion:SfDataGrid.Columns> |
We have prepared a sample using the above code example to replicate your scenario and it is available in the below link for your reference.
Sample link : https://www.syncfusion.com/downloads/support/directtrac/general/ze/149408_SfDataGrid1027251657
Please let us know if you require further assistance from us.
Regards,
Mohanram A
ML
Martin Lennaerts
November 28, 2019 10:14 AM UTC
Thanks for your effort.
It looks like what we want so we will continue this way for now.
Regards Martin Lennaerts
FP
Farjana Parveen Ayubb
Syncfusion Team
November 29, 2019 07:19 AM UTC
Hi Martin,
Thanks for the update.
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you.
Regards,
Farjana Parveen A
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
-
ML Martin Lennaerts
- Nov 25, 2019 01:38 PM UTC
- Nov 29, 2019 07:19 AM UTC