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

Can RadWrapPanel fill available row space with controls

2 Answers 72 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andrew
Top achievements
Rank 1
Andrew asked on 04 Oct 2012, 05:06 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 09 Oct 2012, 03:41 PM
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.

0
Andrew
Top achievements
Rank 1
answered on 09 Oct 2012, 03:46 PM
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.
Tags
General Discussions
Asked by
Andrew
Top achievements
Rank 1
Answers by
Yana
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or