Click here to Skip to main content
16,016,425 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 .
XML
<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 .....

C#
CrossCutting.GlobalVariable.GDepcoll = new ObservableCollection<Dependent>();
raddtgFamDetails.ItemsSource = CrossCutting.GlobalVariable.GDepcoll;
Posted

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900