Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
350
XamGrid Summary ColumnLayout
posted

Hi,

I have some problem to refresh value on column who depend of child item.

My model is define in the sample.

I would like to have the Sum of Qty delivery for each items

I tried something like this :

<ig:XamGrid x:Name="ControleGrid"

                    Width="auto"               

                    ItemsSource="{Binding Items}" 

                    AutoGenerateColumns="False"

                    IsAlternateRowsEnabled="False">

           

            <ig:XamGrid.Columns>

<ig:TextColumn Key="DeliveryQuantityQty" ></ig:TextColumn>

 

<ig:ColumnLayout Key="Deliveries">

  <ig:ColumnLayout.AddNewRowSettings>

<ig:AddNewRowSettingsOverride AllowAddNewRow="Bottom"/>

</ig:ColumnLayout.AddNewRowSettings>

                            <ig:ColumnLayout.Columns>

                                <ig:TextColumn Key="Qty" ></ig:TextColumn>

                            </ig:ColumnLayout.Columns>

</ig:ColumnLayout>

            </ig:XamGrid.Columns>

        </ig:XamGrid>

Problem : When i add row in the Delivries in the ColumnLayout the parent column DeliveryQuantityQty is not update.

When i use sort function of XamGrid on column the DeliveryQuantityQty is update.

I would like to get the new value after adding Delivery.

Is there any way to avoid this problem ? (use summary function in header of columnlayout is a possibility ?)

Thanks a lot for your help.

XamGrid_sample_Refresh.zip
Parents Reply Children
No Data