Bug with RadDataBoundListBox Footer and EmptyContent

4 posts, 0 answers
  1. Michael
    Michael avatar
    13 posts
    Member since:
    Apr 2013

    Posted 19 Nov 2014 Link to this post

    I have noticed a bug in RadDataBoundListBox  when you enable EmptyContent and also have a ListFooterTemplate defined.  Instead of having the footer displayed below the EmptyContentTemplate it is displayed behind it.

    Steps to repro:
    1. Add RadDataBoundListBox and configure EmptyContent string along with a EmptyContentTemplate (TextBlock in StackPanel)
    2. Define a ListFooterTemplate and add a few controls

    When you view, you will notice that they overlap instead of having the Empty Content displayed on top of the footer
  2. Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    551 posts

    Posted 24 Nov 2014 Link to this post

    Hello Michael,

    Thank you for contacting us.

    I tried to reproduce this bug following the described steps, but unfortunately to no avail. I have attached the test application. Could you please take a look and modify it in order to reproduce the issue.

    I look forward to your reply.

    Regards,
    Rosy Topchiyska
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
  4. Michael
    Michael avatar
    13 posts
    Member since:
    Apr 2013

    Posted 24 Nov 2014 in reply to Rosy Topchiyska Link to this post

    If you look at your example, you will see that you only see the footer portion.  The empty content is not visible.  Only when I comment out the ListFooterTemplate can I see the Empty Content message.
  5. Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    551 posts

    Posted 27 Nov 2014 Link to this post

    Hi Michael,

    Now I understand what you have meant in your previous post. This happens because the EmptyContent is displayed when the list box is completely empty. While there is a footer, the list box is not empty and the EmptyContent is not displayed. We will think of a way to extend the current functionality of the EmptyContentDisplayMode property to support your scenario. Until then, I can suggest that you add the empty content to the footer and show it when the ItemsSource is empty.

    I hope this helps. I have added Telerik points to your account for reporting this issue. Please, let us know if you have further questions.

    Regards,
    Rosy Topchiyska
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top