Thread is closed for posting
4 posts, 0 answers
  1. Ryan
    Ryan avatar
    12 posts
    Member since:
    Apr 2012

    Posted 12 Jun 2012 Link to this post

    I'm trying to swap out a standard ItemsControl for a RadDataBoundListBox, but am finding that it does not stretch vertically. Instead, it looks like it has a fixed height of about 100 pixels. I can manually set the Height to make it taller, but I'd like it to stretch to fill the available space like a standard ItemsControl. How can I do this?

  2. Ryan
    Ryan avatar
    12 posts
    Member since:
    Apr 2012

    Posted 13 Jun 2012 Link to this post

    Oops nevermind. Since I was previously using an ItemsControl, I had it in a ScrollViewer. When I swapped it out for a RadDataBoundListBox, I ended up with a nested ScrollViewer. Removing the outer ScrollViewer solved the problem. 
  3. janiss
    janiss avatar
    7 posts
    Member since:
    Nov 2012

    Posted 08 Jan 2013 Link to this post

    This is exactly my problem with RadDataBoundListBox :/

    Im trying to put RadDataBoundListBox with disabled vertical scrolling in ScrollViewer, but it does not stretch, even if i set VerticalContentAlignment="Stretch". With default ListBox everything seems to work fine.
  4. Deyan
    Deyan avatar
    2147 posts

    Posted 09 Jan 2013 Link to this post

    Hello Janis,

    Thanks for writing.

    When you put a DataBoundListBox instance in a ScrollViewer stretching is not a valid term since the ScrollViewer allows its direct child to grow as much as it wants. In other words, the DataBoundListBox will calculate its height based on the amount of items it has in its source.

    I hope this helps.

    the Telerik team
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Back to Top