Hi
I have a simple Rad grid using the Bootstrap skin.
Based on the data I'm using the ItemDataBound to change the row COlour, however its not being applied to Alternate rows.
How can I fix this?
Here is my code:
Protected Sub rgHousekeeping_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgHousekeeping.ItemDataBound
If TypeOf e.Item Is GridDataItem Then
Dim RowDataItem As GridDataItem = CType(e.Item, GridDataItem)
Dim TaskComplete As System.Web.UI.WebControls.Image = DirectCast(RowDataItem("TaskComplete").Controls(0), System.Web.UI.WebControls.Image)
If CBool(e.Item.DataItem("TaskComplete")) Then
TaskComplete.ImageUrl = "Content/Images/Tick_24.png"
Else
RowDataItem.BackColor = Drawing.ColorTranslator.FromHtml("#ff7474")
End If
End If
End Sub
Andy