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

DefaultStyle for EmptyContent

4 Answers 71 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.
Piotr
Top achievements
Rank 1
Piotr asked on 27 Apr 2012, 02:10 PM
Hello Telerik,

Our team is using your controls in application. They are great, but unfortunatly we

encountered one problem during development. When the DataBoundListBox is empty, the "No data to

display" message is shown. We want to change this to support diffrent languages. We would like to

do this by applying language resource to EmptyContent proprety in default style for

RadDataboundListBox (style is localized in App.xaml). Unfortunatly, applying anything to

EmptyContent via style dosen't seem to work. Is there any solution for this problem?

Best regards
Tomek

4 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 01 May 2012, 12:32 PM
Hi Piotr,

Thanks for contacting us.

By default, the empty content text that you can see in RadDataBoundListBox is locallized for German, French, and Italian. To activate the localization for your Windows Phone App, however, you will have to add the SupportedCultures tag in your project and describe which cultures your app is supporting.

As for the issue with setting EmptyContent from style: we have managed to reproduce it on our side and will fix it in an Internal Build that we are going to release next week.

I hope this helps.

Let me know in case you have questions or need assistance.

Kind regards,
Deyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Piotr
Top achievements
Rank 1
answered on 07 May 2012, 01:54 PM
Hi,
Thank you for quick response.

Best regards.
0
Zazrovity
Top achievements
Rank 1
answered on 15 Jun 2012, 01:17 PM
Hi Telerik,

I checked it with radControls 2012 q2 (version 2012.2.607.2040) for wp7 and seems like still exist.

Best Regards,
0
Deyan
Telerik team
answered on 20 Jun 2012, 07:44 AM
Hi Zazrovity,

I have performed a quick test with our latest assemblies and setting EmptyContent via a Style works as expected on my side. Here's the XAML code I am using:

<telerikPrimitives:RadDataBoundListBox
    x:Name="radDataBoundListBox">
    <telerikPrimitives:RadDataBoundListBox.Style>
        <Style TargetType="telerikPrimitives:RadDataBoundListBox">
            <Setter Property="EmptyContent" Value="Empty"/>
        </Style>
    </telerikPrimitives:RadDataBoundListBox.Style>
</telerikPrimitives:RadDataBoundListBox>

Please check that you have correctly updated the references in your project to our latest assemblies. Also, make sure to uninstall any previous versions of RadControls for Windows Phone as I suspect that you are still using the older version.

If after doing this the issue persists, providing a demo project for us to test would be perfect. Note that you will have to open a new support ticket in order to be able to attach a project.

Thanks for your time.

Kind regards,
Deyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
DataBoundListBox
Asked by
Piotr
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Piotr
Top achievements
Rank 1
Zazrovity
Top achievements
Rank 1
Share this question
or