Click here to Skip to main content
11,709,366 members (41,502 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WPF C#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
0 Sergey Alexandrovich Kryukov 580
1 OriginalGriff 250
2 Maciej Los 225
3 Peter Leow 219
4 Mika Wendelius 160
0 OriginalGriff 9,428
1 Sergey Alexandrovich Kryukov 9,027
2 CPallini 5,189
3 Maciej Los 4,991
4 Mika Wendelius 3,856


Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 24 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100