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.PreRenderIf Not IsPostBack ThenFor Each item As GridItem In rgScripts.MasterTableView.ItemsIf TypeOf item Is GridEditableItem ThenDim editableItem As GridEditableItem = CType(item, GridDataItem)editableItem.Edit = TrueEnd IfNextrgScripts.Rebind()End IfEnd 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