New ExpandMode Type

6 posts, 0 answers
  1. Seth
    Seth avatar
    90 posts
    Member since:
    Jun 2007

    Posted 01 Apr 2008 Link to this post

    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
  2. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 04 Apr 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. MB
    MB avatar
    149 posts
    Member since:
    Jan 2005

    Posted 11 Apr 2008 Link to this post

    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.
  5. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 18 Apr 2008 Link to this post

    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
  6. MB
    MB avatar
    149 posts
    Member since:
    Jan 2005

    Posted 18 Apr 2008 Link to this post

    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  :)

  7. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 18 Apr 2008 Link to this post

    'K thanks.

    Number 146 n the ToDo list ...

    --
    Stuart
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017