Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WPFC#4.0
Hi
I have a telerik rad grid with 5 columns and am binding values using itemsource property .... Now i have added 2 image columns which has to updated .... How can i do this .
                                   <telerik:RadGridView.Columns>
 
                                        <telerik:GridViewCheckBoxColumn Header="{loc:Translate}" loc:Translate.Uid="101" DataMemberBinding="{Binding Enrolled}" IsReadOnly="False" AutoSelectOnEdit="True" EditTriggers="CurrentCellClick" HeaderCellStyle="{StaticResource headerCellAgeStyle}"/>
                                        <telerik:GridViewImageColumn Header="{loc:Translate}" Name="imgColumn1" loc:Translate.Uid="222" IsReadOnly="True" HeaderCellStyle="{StaticResource headerCellAgeStyle}"></telerik:GridViewImageColumn>
                                        <telerik:GridViewImageColumn Header="{loc:Translate}" Name="imgColumn2" loc:Translate.Uid="223" DataMemberBinding="{Binding JBYimg}" IsReadOnly="True" HeaderCellStyle="{StaticResource headerCellAgeStyle}"></telerik:GridViewImageColumn>
                                        <telerik:GridViewDataColumn Header="{loc:Translate}" loc:Translate.Uid="102" DataMemberBinding="{Binding MemberName}" Width="180" IsReadOnly="True" HeaderCellStyle="{StaticResource headerCellAgeStyle}">
 
                                        </telerik:GridViewDataColumn>
 
                                        <telerik:GridViewDataColumn Header="{loc:Translate}" loc:Translate.Uid="103" Width="100" IsReadOnly="True" HeaderCellStyle="{StaticResource headerCellAgeStyle}">
                                            <telerik:GridViewDataColumn.CellTemplate>
                                                <DataTemplate>
                                                    <TextBlock Text="{Binding Gender,Mode=TwoWay}"/>
                                                </DataTemplate>
                                            </telerik:GridViewDataColumn.CellTemplate>
 
                                        </telerik:GridViewDataColumn>
                                        <dtpic:DateTimePickerColumn HeaderCellStyle="{StaticResource headerCellAgeStyle}" IsReadOnly="True" Header="{loc:Translate}" loc:Translate.Uid="179" Width="100" DataMemberBinding="{Binding DateOfBirth,Mode=TwoWay}" DataFormatString="{}{0:dd/MM/yyyy}"/>
 
                                        <telerik:GridViewDataColumn HeaderCellStyle="{StaticResource headerCellAgeStyle}" IsReadOnly="True" Header="{loc:Translate}" loc:Translate.Uid="104" DataMemberBinding="{Binding Age,StringFormat=\{0:n0\},ValidatesOnDataErrors=True}" Width="60"/>
                                        <telerik:GridViewDataColumn HeaderCellStyle="{StaticResource headerCellAgeStyle}" IsReadOnly="True" Header="{loc:Translate}" loc:Translate.Uid="105" Width="100">
                                            <telerik:GridViewDataColumn.CellTemplate>
                                                <DataTemplate>
                                                    <TextBlock Text="{Binding Path=RelationCode,Converter={StaticResource GetDepRelName}}"/>
                                                </DataTemplate>
                                            </telerik:GridViewDataColumn.CellTemplate>
 
                                        </telerik:GridViewDataColumn>
                                        <telerik:GridViewDataColumn HeaderCellStyle="{StaticResource headerCellAgeStyle}" IsReadOnly="True" Width="110" Header="{loc:Translate}" loc:Translate.Uid="180" DataMemberBinding="{Binding Path=UIDNumber,ValidatesOnDataErrors=True,ValidatesOnExceptions=True}"/>
 
                                    </telerik:RadGridView.Columns>
 
And my code behind is as follows .....
 
CrossCutting.GlobalVariable.GDepcoll = new ObservableCollection<Dependent>();
raddtgFamDetails.ItemsSource = CrossCutting.GlobalVariable.GDepcoll;
Posted 23-Dec-12 21:09pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Guruprasad.K.Basavaraju 446
1 Sergey Alexandrovich Kryukov 360
2 Shai Vashdi 318
3 OriginalGriff 265
4 Peter Leow 171
0 Sergey Alexandrovich Kryukov 9,109
1 OriginalGriff 5,290
2 Peter Leow 4,010
3 Maciej Los 3,535
4 Abhinav S 3,263


Advertise | Privacy | Mobile
Web02 | 2.8.140415.2 | Last Updated 24 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid