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
30
refreshing xamGrid template column data based on other field.
posted

Normal 0 false false false EN-IN X-NONE X-NONE

HI,

I am using xamGrid and I have the scenario mentioned below.

I have a status column, when the status is changed to a particular status I need to set the follow-up date to null. I wrote the logic to set the follow-up date to null in data bound class (data item class) and using the INotifier property changed but the value in the date controls (Follow-up date) is not getting cleared.

The following are the columns using.

<ig:TemplateColumn Key="StatusId" HeaderText="Status" MinimumWidth="150">
                                            <ig:TemplateColumn.ItemTemplate>
                                                     <DataTemplate>
                                                             <TextBlock Text="{Binding Status}"></TextBlock>
                                                    </DataTemplate>
                                            </ig:TemplateColumn.ItemTemplate>
                                            <ig:TemplateColumn.EditorTemplate>
                                                    <DataTemplate>
                                                             <naiaControls:EditableCombobox Margin="0" MinWidth="100" SelectedValue="{Binding StatusId, Mode=TwoWay}" SelectedValuePath="Id"
                                                             ItemsSource="{Binding Statuses, Source={StaticResource ViewModel}}"/>
                                                    </DataTemplate>
                                            </ig:TemplateColumn.EditorTemplate>
                                   </ig:TemplateColumn>

 

<ig:TemplateColumn Key="FollowUp" HeaderText="Follow Up Date">

                    <ig:TemplateColumn.ItemTemplate>

                        <DataTemplate>

                            <TextBlock Text="{Binding FollowUp}"/>

                        </DataTemplate>

                    </ig:TemplateColumn.ItemTemplate>

                    <ig:TemplateColumn.EditorTemplate>

                        <DataTemplate>

                            <sdk:DatePicker Margin="0" SelectedDate="{Binding FollowUp, Mode=TwoWay}"/>

                        </DataTemplate>

                    </ig:TemplateColumn.EditorTemplate>

                </ig:TemplateColumn>

 

I checked the row data item value in cell exit edit mode event and it is updated to null.

 

I am using Infragistics SL 4 v10.3.

 

Regards,

Hareen.

 

  • 30
    posted

    Normal 0 false false false EN-IN X-NONE X-NONE

    Please discard this post, after working on the fresh copy of gird I found that this is issue with ‘INotifyPropertyChanged’.