
'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
Value cannot be null.
Parameter name: value
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: value
Source Error:
|
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
|
[ArgumentNullException: Value cannot be null. Parameter name: value] System.Collections.CollectionBase.OnValidate(Object value) +3635966 Telerik.WebControls.RadEditorUtils.ToolbarCollection.OnValidate(Object value) +17 System.Collections.CollectionBase.System.Collections.IList.Remove(Object value) +54 Telerik.WebControls.RadEditorUtils.ToolbarCollection.Remove(Toolbar toolbar) +29 Telerik.SharePoint.ListFieldEditor.RadHtmlListField.OnLoad(EventArgs e) +535 System.Web.UI.Control.LoadRecursive() +66 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2604 |