I have a form with a RadGrid set to use the Outlook skin and a RadPanelBar also set to use the Outlook skin. This has been working without issue until I followed the code example on how to force all rows in a RadGrid into edit mode. When this happens, the RadGrid.Rebind() causes the RadPanelBar to loose styling. I have isolated it to just the Rebind() on the RadGrid's PreRender.
My RadGrid and RadPanelBar are defined as followed:
This works perfectly if rgScripts.Rebind() isn't called.
Thanks,
William
Private Sub rgScripts_PreRender(sender As Object, e As EventArgs) Handles rgScripts.PreRender
If Not IsPostBack Then
For Each item As GridItem In rgScripts.MasterTableView.Items
If TypeOf item Is GridEditableItem Then
Dim editableItem As GridEditableItem = CType(item, GridDataItem)
editableItem.Edit = True
End If
Next
rgScripts.Rebind()
End If
End Sub
My RadGrid and RadPanelBar are defined as followed:
<
telerik:RadGrid
ID
=
"rgScripts"
runat
=
"server"
Skin
=
"Outlook"
AllowMultiRowEdit
=
"true"
>
...
</
telerik:RadGrid
>
<
telerik:RadPanelBar
ID
=
"pbAddNewDrug"
runat
=
"server"
Width
=
"100%"
Skin
=
"Outlook"
EnableEmbeddedSkins
=
"true"
>
...
</
telerik:RadPanelBar
>
This works perfectly if rgScripts.Rebind() isn't called.
Thanks,
William