MaxWidth property problem in WrapPanel

4 posts, 0 answers
  1. Pieter
    Pieter avatar
    6 posts
    Member since:
    Jul 2011

    Posted 28 Jul 2011 Link to this post

    Hi,

    I noticed that RadWrapPanel fixes the panel width when I set a value in MaxWidth and this behavior is different if we compare with WrapPanel from Silverlight toolkit. Is this a real problem or not?

    Thanks in advance.

    Pieter Voloshyn
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 03 Aug 2011 Link to this post

    Hi Pieter,

     I was not aware that the toolkit wrap panel behaves differently but our behavior is by design. the MaxWidth property is controlled by the Silverlight framework, not by us and I think this is how it should work. When max width is set, the Width property has no effect when it is greater than MaxWidth. It can be less however.

    How does the toolkit behave? Do you need this functionality? We will consider extending RadWrapPanel so that it can behave both ways.

    Please write again if you have other questions.

    Kind regards,
    Victor
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. DevCraft banner
  4. Pieter
    Pieter avatar
    6 posts
    Member since:
    Jul 2011

    Posted 03 Aug 2011 Link to this post

    Hi Victor,

    I insert a WrapPanel with MaxWidth = 800. With toolkit, if exists fewer items the width is reduced. Replacing with the Telerik WrapPanel, independently if exists fewer items the width is equals to 800.

    Thanks in advance.

    Pieter Voloshyn
  5. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 10 Aug 2011 Link to this post

    Hi Pieter,

     Thank you for the clarification. This is a bug in the RadWrapPanel layout and we will fix it for the next internal build (next monday).

    Please write again if you need further assistance.
    Your Telerik points have been updated.

    Best wishes,
    Victor
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top