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
390
Issue Binding Data to template Column from observable collection
posted

We are facing problem binding to template column from an observable collection with in XamGrid.  In TemplaeColumn we have placed a TextBlock and binding text property using {Binding FMInstalled}. This template column is placed inside Column Layout to get drill down effect.

 XamGrid is binded to an observerable collection of calss name FL. Again Class FL has observerable collection with class name SL (SL to null initially). FL data is displayed in xamGrid. On selecting any row (using arrow) we are making service call and updating the observable collection of SL for the selected FL. This is populatig Column Layout i.e. drill down correctly.

 Now when I select same row again, we are making service and repopulating the inner observable collection. This time template column control are not getting bounded to the observable collection changes. Please find the design below and attachment is the screen shot of issue occuring.

<ig:GroupColumn Key="Firmware" HeaderText="Firmware" Width="0.25*">

 <ig:GroupColumn.Columns>                                                               

  <ig:TemplateColumn HeaderText="Installed"

     Key="FWUpgradeFlag" Width="Auto">    <ig:TemplateColumn.ItemTemplate>                                                             

      <DataTemplate>

         <TextBlock Text="{Binding Path=FWInstalled}" />

      </DataTemplate>

</ig:TemplateColumn.ItemTemplate>                                                        <ig:TemplateColumn.ConditionalFormatCollection>

                                                            <ig:IconConditionalFormatRule CellValueVisibility="Collapsed">

                                                                <ig:IconConditionalFormatRule.Rules>

                                                                    <ig:ConditionalFormatIcon ValueType="Number" Value="9" Operator="GreaterThanOrEqualTo"/>

                                                                    <ig:ConditionalFormatIcon ValueType="Number" Value="3" Operator="GreaterThanOrEqualTo">

                                                                        <ig:ConditionalFormatIcon.Icon>

                                                                            <DataTemplate>

                                                                                <StackPanel Orientation="Horizontal" Margin="4,0,0,0">

                                                                                    <Ellipse Stroke="#FF8C2318" Height="8" Width="8" StrokeThickness="10" />

                                                                                </StackPanel>

                                                                            </DataTemplate>

                                                                        </ig:ConditionalFormatIcon.Icon>

 

 

 

 

  

  

 

Parents
No Data
Reply Children
No Data