We have a Radgrid where the header text is modified; this is done on the grid ItemDataBound event. This works properly on the initial page display.
However, after a postback the header text reverts to the original values. For example; if we use the Editmode=Popup option, teh values that are shown in the popup are the original header text values, not the modified values.
Here's where the modification is done;
However, after a postback the header text reverts to the original values. For example; if we use the Editmode=Popup option, teh values that are shown in the popup are the original header text values, not the modified values.
Here's where the modification is done;
Protected Sub RadGridInvoiceSubcontracts_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGridInvoiceSubcontracts.ItemDataBound If TypeOf (e.Item) Is GridHeaderItem Then Using taArea As New InvoiceAreasTableAdapters.AreasTableAdapter Using tArea As InvoiceAreas.AreasDataTable = taArea.GetData For Each rArea As InvoiceAreas.AreasRow In tArea Dim header As GridHeaderItem = DirectCast(e.Item, GridHeaderItem) header("Area" & rArea.AreaID).Text = rArea.AreaName header.EnableViewState = True Next End Using End Using End If End Sub