ListHeader always takes up space

Thread is closed for posting
2 posts, 0 answers
  1. Michiel
    Michiel avatar
    1 posts
    Member since:
    Jan 2012

    Posted 22 Feb 2012 Link to this post

    I have a RadDataBoundListBox and sometimes I want to show a header, sometimes not. But when I'm using a Header, without content, or with a stackpanel that is Collapsed, it still takes up space (30 pixels?). Is there a way to work around this?

    Example header which can be used in the Telerik example project:

    <DataTemplate x:Key="HeaderTemplate">
          <StackPanel Visibility="Collapsed">

    I'm using the Q1 2012 release.
  2. Deyan
    Deyan avatar
    2147 posts

    Posted 23 Feb 2012 Link to this post

    Hello Michiel,

    Thanks for contacting us.

    I have tried to reproduce the issue in a list box with a ListHeaderTemplate defined by setting the Visibility property of the root element of the template to Collapsed but everything works as expected on my side.

    Could you please reveale some further details on how you are updating the visibility, whether you are doing this dynamically or you are simply exchanging templates?

    A demo project that reproduces the scenario would be the best way for me to investigate the case and further assist you.

    Please note that you will have to open a new support ticket in order to be able to attach your project.

    Thanks for your time.

    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top