This is a migrated thread and some comments may be shown as answers.

Bug: EmptyContentTemplate horizontally grows with content instead of wrapping text

5 Answers 37 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bernhard König
Top achievements
Rank 2
Bernhard König asked on 12 Jun 2014, 11:34 PM
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

5 Answers, 1 is accepted

Sort by
0
Bernhard König
Top achievements
Rank 2
answered on 15 Jun 2014, 06:42 PM
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
0
Bernhard König
Top achievements
Rank 2
answered on 15 Jun 2014, 06:44 PM
Sorry, the version that has this change is obviously 2013.3 1329, NOT 2014.1 0226.
0
Accepted
Ves
Telerik team
answered on 18 Jun 2014, 08:16 AM
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.

 
0
Bernhard König
Top achievements
Rank 2
answered on 18 Jun 2014, 11:37 PM
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.
0
Ves
Telerik team
answered on 23 Jun 2014, 10:25 AM
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.

 
Tags
DataBoundListBox
Asked by
Bernhard König
Top achievements
Rank 2
Answers by
Bernhard König
Top achievements
Rank 2
Ves
Telerik team
Share this question
or