Bug: EmptyContentTemplate horizontally grows with content instead of wrapping text

6 posts, 1 answers
  1. Bernhard König
    Bernhard König avatar
    78 posts
    Member since:
    Nov 2009

    Posted 12 Jun 2014 Link to this post

    I haven't updated my WP8 telerik controls in my project for a longer time now. Yesterday I updated to the most current version and I immediately noticed something goes wrong with the EmptyDataTemplate. Textblocks that have TextWrapping="Wrap" set suddenly don't wrap anymore and just remain in one line, overflowing the width of the parent control.

    To reproduce, create a new page. Place a DataBoundListBox or JumpList on the page that stretches vertically and horizontally to fill the available screen space. Add a EmptyContentTemplate and place a TextBlock within. Now write a longer text into this TextBlock so that it can't fit on one line. Set TextWrapping=Wrap on this TextBlock.

    Notice that the text now overflows the width of the DataBoundListBox control instead of having line breaks.

    Is there a workaround for this behavior?

    Thanks,
    Bernhard
  2. Bernhard König
    Bernhard König avatar
    78 posts
    Member since:
    Nov 2009

    Posted 15 Jun 2014 Link to this post

    Update: i found the change that most likely caused this issue:

    In the changelog to UI for Windows Phone 7/8 2014.1 0226:

    ​Important Changes:
    DataBoundListBox
    The EmptyContent holder within the RadDataBoundListBox’s and RadJumpList’s control templates is moved to be within the scrollable content so that the PullToRefresh experience works when no items are available in the source.

    I now reverted my references back to the version before this release (2013.3 1127) and it works as expected again.

    While I understand why this change was made, I think it's still a bug that content gets stretched beyond the parent's control horizontal width and thus, text is not wrapped. As I don't need any of the newer features, it's not important to have a fix soon for me, but still, hopefully you're going to provide one with the next major update :)

    Thanks,
    Bernhard
  3. DevCraft banner
  4. Bernhard König
    Bernhard König avatar
    78 posts
    Member since:
    Nov 2009

    Posted 15 Jun 2014 in reply to Bernhard König Link to this post

    Sorry, the version that has this change is obviously 2013.3 1329, NOT 2014.1 0226.
  5. Answer
    Ves
    Admin
    Ves avatar
    2879 posts

    Posted 18 Jun 2014 Link to this post

    Hi Bernhard,

    The fix will be included in Q2 release, due later today. Please, update once it is out.

    Best regards,
    Ves
    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.

     
  6. Bernhard König
    Bernhard König avatar
    78 posts
    Member since:
    Nov 2009

    Posted 18 Jun 2014 Link to this post

    Thanks Ves, with todays Q2 update it works now as expected!

    Will there also be an update for WP7 controls available? I was only able to find an update for the WP8 controls ...

    Thanks,
    b.
  7. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 23 Jun 2014 Link to this post

    Hi Bernhard,

    We will not ship official releases for Telerik UI for Windows Phone 7. Please, open a formal support ticket and we will provide you with a custom build.

    Best regards,
    Ves
    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
DevCraft banner