8 Ocak 2013 Salı

RadGrid: coloring a line dynamically on client side

In a radgrid, changing forecolor of a row dynamically on client side is pretty easy. It can be achieved by using GridTemplateColumn:

 <telerik:GridTemplateColumn HeaderText='Not' HeaderStyle-Width="50px">  
           <ItemTemplate>  
             <div style='color: <%# Eval("Renk")%>'>  
               <%# Eval("OgrenciNihaiNot")%>  
             </div>  
           </ItemTemplate>  
         </telerik:GridTemplateColumn>  

Hiç yorum yok:

Yorum Gönder