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

New ExpandMode Type

5 Answers 117 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Seth
Top achievements
Rank 1
Seth asked on 02 Apr 2008, 02:47 AM
If no one has suggested it, in addition to SingleExpandedItem, MultipleExpandedItmes, and FullExpandedItem, how about a MultipleFullExpandedItems?

Here is my need:

I have one RadPanelItem that I need to be the full 100% height, except when a second RadPanelItem is expaned.  I want both of them to be displayed, but I want the PanelBar to be at full height.  Is there a way to accomplish this now?

I hope that made some sense.

Seth

5 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 04 Apr 2008, 02:10 PM
Hello Seth,

Thanks for the suggestion.

Unfortunately, such expand mode will be very hard to be implemented and I doubt you will see it soon in the control. Anyway, your request has been logged in our ToDo list for future consideration.

All the best,
Paul
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
MB
Top achievements
Rank 1
answered on 11 Apr 2008, 08:23 AM
I wrote a custom expand mode for the classic version of the Panelbar, and basically it's just a matter of hooking the OnClientItemClicking event, and working with the client API from there.

In my case I wanted the mode to be SingleExpandedItem, but have the PanelBar always stayed within a known height limit, and have the currently displayed panel scroll if required. Once I understood the client API, it wasn't too hard to make it happen. Trust me, if I can do it, any fool can do it... LOL.
0
Stuart Hemming
Top achievements
Rank 2
answered on 18 Apr 2008, 11:29 AM
In my case I wanted the mode to be SingleExpandedItem, but have the PanelBar always stayed within a known height limit, and have the currently displayed panel scroll if required.
Would you custom ExpandMode work if the "know height limit" were know only as "100%"?

Would you be willing to share the code?

--
Stuart
0
MB
Top achievements
Rank 1
answered on 18 Apr 2008, 12:12 PM

I can’t comment with authority on your specific requirements of 100% height, but at a guess, I would think so.

I can’t publish the code I wrote, as it belongs to the customer I wrote it for, but it wasn’t very complex or extensive.

Basically the OnClientItemClicking client event lets you know that they are clicking on a PanelItem, so you can then intercept to manipulate the properties of the RadPanelBar and RadPanelItem objects, as required... and cancel the default actions if desired.

Once you know the mapping of the PanelBar and PanelItem object to the underlying html elements (detailed in the help) manipulating the display
becomes much easier to understand.

I’m sure you can get some good hints and guides from Telerik support if you ask nice... as they certainly helped me write mine  :)

0
Stuart Hemming
Top achievements
Rank 2
answered on 18 Apr 2008, 12:18 PM
'K thanks.

Number 146 n the ToDo list ...

--
Stuart
Tags
PanelBar
Asked by
Seth
Top achievements
Rank 1
Answers by
Paul
Telerik team
MB
Top achievements
Rank 1
Stuart Hemming
Top achievements
Rank 2
Share this question
or