Hi Telerik Team,
I think I've discovered a bug:
I have a RadPanelBar inside a GridTemplateColumn of a RadGrid, which is itself inside another RadPanelBar, which is inside the NestedViewTemplate of a containing RadGrid's MasterTableView.
Background
I used the NestedViewTemplate of a RadGrid to contain another RadGrid to show child records, because Telerik's default child record view implementation was very difficult to follow for my end users. This was because all the tables at a level were visible at the same time. So I embedded a RadPanelBar inside the NestedViewTemplate of the master RadGrid so that they would only see one RadGrid at a time by expanding/collapsing the RadPanelBar items for each child RadGrid in the NestedViewTemplate. This works beautifully.
Problem
One of the child RadGrids in the RadPanelBar in the NestedViewTemplate has a GridTemplateColumn. This GridTemplate column has a RadPanelBar. The RadPanelBar only has one item in it. It will neither expand nor collapse by clicking on the item header. It will however do so if you click the arrow for the item. Also, an attached OnItemClicked event does not fire.
If I move the RadPanelBar up one level (i.e. outside of the NestedViewTemplate, into a GridTemplateColumn of the master RadGrid), it will expand and collapse normally with only one RadPanelItem in the RadPanelBar. The OnItemClicked event also fires.
The bug (i.e. refusal to expand/collapse & no OnItemClicked event fire) only seems to appear when the RadPanelBar is inside a GridTemplateColumn of a RadGrid that is inside another RadPanelBar that is inside a NestedViewTemplate of a master RadGrid and it only has one RadPanelItem.
...I hope you are following me so far. If not, here's a sample code mockup:
If I add another RadPanelItem to the deeply nested RadPanelBar (ID = "RpbColumn" in the above example) and set its ExpandMode = "SinglePanelItem", it will expand & collapse normally. I'm using Telerik v. 2011.3.1115.40.
Can someone please confirm that this is indeed a bug? Thanks in advance.
I think I've discovered a bug:
I have a RadPanelBar inside a GridTemplateColumn of a RadGrid, which is itself inside another RadPanelBar, which is inside the NestedViewTemplate of a containing RadGrid's MasterTableView.
Background
I used the NestedViewTemplate of a RadGrid to contain another RadGrid to show child records, because Telerik's default child record view implementation was very difficult to follow for my end users. This was because all the tables at a level were visible at the same time. So I embedded a RadPanelBar inside the NestedViewTemplate of the master RadGrid so that they would only see one RadGrid at a time by expanding/collapsing the RadPanelBar items for each child RadGrid in the NestedViewTemplate. This works beautifully.
Problem
One of the child RadGrids in the RadPanelBar in the NestedViewTemplate has a GridTemplateColumn. This GridTemplate column has a RadPanelBar. The RadPanelBar only has one item in it. It will neither expand nor collapse by clicking on the item header. It will however do so if you click the arrow for the item. Also, an attached OnItemClicked event does not fire.
If I move the RadPanelBar up one level (i.e. outside of the NestedViewTemplate, into a GridTemplateColumn of the master RadGrid), it will expand and collapse normally with only one RadPanelItem in the RadPanelBar. The OnItemClicked event also fires.
The bug (i.e. refusal to expand/collapse & no OnItemClicked event fire) only seems to appear when the RadPanelBar is inside a GridTemplateColumn of a RadGrid that is inside another RadPanelBar that is inside a NestedViewTemplate of a master RadGrid and it only has one RadPanelItem.
...I hope you are following me so far. If not, here's a sample code mockup:
<telerik:RadGrid ID="MasterRadGrid" runat="server"> <MasterTableView CommandItemDisplay="Bottom"> <NestedViewTemplate> <telerik:RadPanelBar ID="RadPanelBar1" runat="server"> <Items> <telerik:RadPanelItem runat="server" Owner="RadPanelBar1" Text="Child Table 1"> <ContentTemplate> <telerik:RadGrid ID="ChildRadGrid1" runat="server"> <MasterTableView runat="Server" CommandItemDisplay="Bottom"> <Columns> <telerik:GridTemplateColumn HeaderText="Column" UniqueName="Column"> <EditItemTemplate> <telerik:RadPanelBar ID="RpbColumn" runat="server"> <Items> <telerik:RadPanelItem runat="server" Owner="RpbColumn"> <!-- Assorted controls. This RadPanelItem won't expand here, unless in MasterRadGrid --> </telerik:RadPanelItem> </Items> </telerik:RadPanelBar> </EditItemTemplate> </telerik:GridTemplateColumn> </Columns> </MasterTableView> </telerik:RadGrid> </ContentTemplate> </telerik:RadPanelItem> <telerik:RadPanelItem runat="server" Owner="RadPanelBar1" Text="Child Table 2"> <!--- Another RadGrid --> </telerik:RadPanelItem> <telerik:RadPanelItem runat="server" Owner="RadPanelBar1" Text="Child Table 3"> <!--- Another RadGrid --> </telerik:RadPanelItem> </Items> </telerik:RadPanelBar> </NestedViewTemplate> </MasterTableView></telerik:RadGrid >If I add another RadPanelItem to the deeply nested RadPanelBar (ID = "RpbColumn" in the above example) and set its ExpandMode = "SinglePanelItem", it will expand & collapse normally. I'm using Telerik v. 2011.3.1115.40.
Can someone please confirm that this is indeed a bug? Thanks in advance.