How to change order in RadPaneGroups

5 posts, 0 answers
  1. Maurizio
    Maurizio avatar
    43 posts
    Member since:
    Jan 2012

    Posted 19 Nov 2014 Link to this post

    I want to change the order of RadPanes in a RadPaneGroup. Obviously others already had the same problem:

    http://www.telerik.com/forums/how-to-change-tab-order-in-radpanegroup

    In it above post. There is a Link to your PITS given, that does not work. So how is the status, now that the issue occurred four years ago?


    (BTW: PITS looks shitty when you visit it wit an Opera Browser)
  2. Maurizio
    Maurizio avatar
    43 posts
    Member since:
    Jan 2012

    Posted 19 Nov 2014 Link to this post

    Since RadPaneGroup.Items is a CollectionView, I tried to set a SortDescription, hoping that the items (Panes) would stay in alphabetical order after pinning and unpinning:


    myPaneGroup.Items.SortDescriptions.Add(new System.ComponentModel.SortDescription("CustomerName", System.ComponentModel.ListSortDirection.Ascending));


    - in vain. Instead of sorting, the whole PaneGroup vanishes to Nirvana...
  3. UI for WPF is Visual Studio 2017 Ready
  4. George
    Admin
    George avatar
    1332 posts

    Posted 20 Nov 2014 Link to this post

    Hi Peter,

    Reordering of panes is already implemented for RadDocking control, however is disabled by default. You could enabled it by setting RadDocking.AllowDragReorder property. For more information please refer to the following link.

    Hope this helps.

    Regards,
    George
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  5. Maurizio
    Maurizio avatar
    43 posts
    Member since:
    Jan 2012

    Posted 20 Nov 2014 in reply to George Link to this post

    Hi George,

    thats not what I want. I want to to a programmatic reordering, not Drag&Drop reordering. 

    The problem is the following: I want the tabs to stay in exactly this order: Pane1, Pane2, Pane3. When the user pins Pane1 and then unpins it again, I'll get the order Pane2, Pane3, Pane1, because Pane1 seems to be added to the list of tabs at the end.

    How can I do a programmatic reordering - or even better how can I tell the RadPaneGroup: "Keep your panes exactly in this order!"

  6. George
    Admin
    George avatar
    1332 posts

    Posted 24 Nov 2014 Link to this post

    Hi Peter,

    The described behavior is not supported with the current RadDocking version. However there is a feature request which is already logged in our feedback portal here where you can vote for it and we will consider implementing it for our next releases if it gets high customers demand. We are not aware of any workarounds at this point.

    Regards,
    George
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for WPF is Visual Studio 2017 Ready