We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Events from "details" datagrid not firing?

Thread ID:

Created:

Updated:

Platform:

Replies:

124275 May 29,2016 06:49 AM May 30,2016 02:01 AM UWP 1
loading
Tags: SfDataGrid
Duane Eitzen
Asked On May 29, 2016 06:49 AM

For my windows 10 UWP app: I have a master-details arrangement of two datagrids. I am adding events handlers for the "Loaded" events for both datagrids in my xaml.  The event does fire for the master datagrid but not for the details datagrid (I am showing the details for a particular row).

The other events from the details table are also not firing. I was intending to use this event handler to set the size of a row in the details datagrid. 

Here is a minimal example (ChoicesTable_Loaded is never called).

<syncfusion:SfDataGrid x:Name="OuterTable" 
            ItemsSource="{Binding OuterList}"
            Margin="87,98,79,136" AutoGenerateColumns="True" Loaded="OuterTable_Loaded">
            <syncfusion:SfDataGrid.DetailsViewDefinition>
                <syncfusion:GridViewDefinition RelationalColumn="InnerList">
                    <syncfusion:GridViewDefinition.DataGrid>
                        <syncfusion:SfDataGrid x:Name="ChoicesTable"
                                        AutoGenerateColumns="True"
                                        ItemsSource="{Binding InnerList}"
                                        Loaded="ChoicesTable_Loaded">
                        </syncfusion:SfDataGrid>
                    </syncfusion:GridViewDefinition.DataGrid>
                </syncfusion:GridViewDefinition>
            </syncfusion:SfDataGrid.DetailsViewDefinition>
</syncfusion:SfDataGrid>

Any ideas? Thanks.

Srinivasan Vasu [Syncfusion]
Replied On May 30, 2016 02:01 AM

 Hi Duane, 
 
Thanks for contacting Syncfusion support. 
 
We have analyzed your query and you have to use SfDataGrid.DetailsViewLoading or SfDataGrid.DetailsViewExpanded events in parent DataGrid instead of using DetailsViewDataGrid.Loaded event. 
 
Please refer the below code example. 
 
XAML 
 
  <syncfusion:SfDataGrid  
                               ItemsSource="{Binding Path=OrdersDetails}" 
                               DetailsViewLoading="dataGrid_DetailsViewLoading" 
                               Loaded="dataGrid_Loaded"> 
 
  <syncfusion:SfDataGrid   
                               ItemsSource="{Binding Path=OrdersDetails}" 
                               DetailsViewExpanded="dataGrid_DetailsViewExpanded"  
                               Loaded="dataGrid_Loaded"> 
 
 
 
Sample Location: DetailsViewDataGrid 
 
Regards,
Srinivasan 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;