Hi
I have a problem whereby I am applying a certain style to different rows on the RadGrid depending on a condition. (It's like outlook where an unread item is bold). I apply the style just after databinding like this (where I crossreference a couple of datatables)...
I have a problem whereby I am applying a certain style to different rows on the RadGrid depending on a condition. (It's like outlook where an unread item is bold). I apply the style just after databinding like this (where I crossreference a couple of datatables)...
'bold unread items
For Each gd As Telerik.Web.UI.GridDataItem In gvDocumentListing.MasterTableView.Items
gd.Font.Bold = True
For Each dr As DataRow In dtRead.Rows
If gd.Item("DocID").Text = dr.Item("DocID") Then
gd.Font.Bold = False
Exit For
End If
Next
Next
The problem is that it only works on the original page load, but if I sort the grid or move to a different page all the items appear with normal styling. I checked that it is running the formatting code but it's just not applying it after postback.
Any help would be appreciated.
Thanks
AndyL