This is a migrated thread and some comments may be shown as answers.

RadPanelBar not expanding

3 Answers 149 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Jeremy
Top achievements
Rank 1
Jeremy asked on 04 Apr 2016, 09:16 PM

I am using RadPanelBar throughout my site and it works fine.  But suddenly when I try to add another one on a user control, I get some weird behavior.  The expandmode I'm using on the site is MultipleExpandedItems and that's what I would like to use in this user control.  I've spent hours on this and have tried to approach it from different directions.  I'm finally at the point where I copied the demo from Telerik and still getting the weird results.  Here's my current test user control.

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TestUserControl.ascx.cs" Inherits="UserControls.TestUserControl" %>
     <div>
        <telerik:RadPanelBar runat="server" ID="RadPanelBar1" ExpandMode="MultipleExpandedItems">
            <Items>
                <telerik:RadPanelItem Text="Panel 1">
                    <Items>
                        <telerik:RadPanelItem Text="Item 1" />
                        <telerik:RadPanelItem Text="Item 2" />
                        <telerik:RadPanelItem Text="Item 3" />
                    </Items>
                </telerik:RadPanelItem>
                <telerik:RadPanelItem Text="Panel 2">
                    <Items>
                        <telerik:RadPanelItem Text="Item 4" />
                        <telerik:RadPanelItem Text="Item 5" />
                        <telerik:RadPanelItem Text="Item 6" />
                    </Items>
                </telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelBar>
    </div>

The panels render as collapsed and when you click on them nothing happens.  However, when I change the ExpandMode to SingleExpandedItem then suddenly it works.  Why does it only work on SingleExpandedItem mode in my user control but not in MultipleExpandedItems mode?  And why does MultipleExpandedItems work everywhere else on my site?

3 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 06 Apr 2016, 11:50 AM
Hello Jeremy,

I replied to your inquiry in the other thread with identical subject in the Ticketing System. I suggest we continue the discussion in it, in order to avoid thread duplication.

Regards,
Ivan Danchev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Ehab
Top achievements
Rank 2
answered on 11 Oct 2016, 12:49 PM

Dear Ivan,

Please provide a link to your answer

 

Thanks

0
Ivan Danchev
Telerik team
answered on 12 Oct 2016, 12:21 PM
Hello Ehab,

I attached a sample project that followed Jeremy's scenario. He was not able to reproduce in the sample project the issue with the items not expanding when MultipleExpandedItems mode is set. We were not able to reproduce any issue either. Eventually he decided to go with a different approach.

Regards,
Ivan Danchev
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
n/a
Top achievements
Rank 1
Veteran
commented on 05 May 2022, 01:38 PM

However, this does not work if you are using code behind onItemClick event
Vessy
Telerik team
commented on 10 May 2022, 11:52 AM

Hi Henry, 

Can you elaborate a bit on the exact logic that you have implemented in the OnItemClick event handler and the functionality that fails to work? Can you send me a small project demonstrating that?

 

Tags
PanelBar
Asked by
Jeremy
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Ehab
Top achievements
Rank 2
Share this question
or