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.

SfDataGrid DetailsView update

Thread ID:

Created:

Updated:

Platform:

Replies:

114774 Dec 7,2013 11:00 AM Dec 11,2013 07:49 AM WPF 1
loading
Tags: GridControl
Pavel
Asked On December 7, 2013 11:00 AM

I have a SfDataGrid.

Usually "Children" property is empty ObservableCollection<...>
And expand-marker is hidden (HideEmptyGridViewDefinition="True");
But sometimes some entities was added in "Children".
And expand-marker is stay be hidden((( And it's appears only when I scroll or resize window (grid).
Can I invalidate grid in this case? Or can I swich some property that grid was updating properly?

<sf:SfDataGrid x:Name="grid"
                   ItemsSource="{Binding Items}"
                   HideEmptyGridViewDefinition="True"
                   ShowGroupDropArea="False"
                   AllowEditing="True">
        
        <sf:SfDataGrid.Columns>
            ...
        </sf:SfDataGrid.Columns>
        <sf:SfDataGrid.DetailsViewDefinition>
            <sf:GridViewDefinition RelationalColumn="Children">
                <sf:GridViewDefinition.DataGrid>
                    <sf:SfDataGrid x:Name="FirstDetailsViewGrid">
                        <sf:SfDataGrid.Columns>
                            ...
                        </sf:SfDataGrid.Columns>
                    </sf:SfDataGrid>
                </sf:GridViewDefinition.DataGrid>
            </sf:GridViewDefinition>
        </sf:SfDataGrid.DetailsViewDefinition>
    </sf:SfDataGrid>

Jai Ganesh S [Syncfusion]
Replied On December 11, 2013 07:49 AM

Hi Pavel,

 

Thanks for using Syncfusion products,

 

We have analyzed your query. We are able to reproduce the reported issue by not refreshing UI when adding the ItemSource to the children. However, you can meet your requirement  by writing the UpDateDataRow() method when calling the ItemSource. Please find the following code snippet to illustrate this:

 

Code Snippet [ Xaml]:

 

 

using Syncfusion.UI.Xaml.Grid.Helpers;

 

this.dataGrid.UpdateDataRow(rowIndex);

 

 

Please let us know if you need further assistance,

 

Thank you,

Jai Ganesh S


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.

;