Can RadWrapPanel fill available row space with controls

3 posts, 1 answers
  1. Andrew
    Andrew avatar
    104 posts
    Member since:
    May 2008

    Posted 04 Oct 2012 Link to this post

    I have a RadWrapPanel inside an ItemsControl that contains N number of RadButtons. Is there a way to make it so that when wrapping occurs the remaining controls in a row expand to fill the available space? 

    I have attached a screenshot of my current way RadWrapPanel works for me.

    Thanks.
  2. Answer
    Yana
    Admin
    Yana avatar
    4554 posts

    Posted 09 Oct 2012 Link to this post

    Hi Andrew,

    Currently it is not possible to implement this requirement,  but in the upcoming Q3 release you will be able to override ArrangeElement method of the control and manually set the needed width to the last buttons in the rows.  Q3 2012 will be released until the end of this month.

    Regards,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Andrew
    Andrew avatar
    104 posts
    Member since:
    May 2008

    Posted 09 Oct 2012 Link to this post

    Thanks for the help. Looking forward to that solution. I've solved the problem in the meantime by implementing my own Wrap Panel from the the Panel base and overriding ArrangeOverride, splitting the difference of the remaining width on a line between the controls on that line.
Back to Top