DefaultStyle for EmptyContent

5 posts, 0 answers
  1. Piotr
    Piotr avatar
    16 posts
    Member since:
    Mar 2012

    Posted 27 Apr 2012 Link to this post

    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
  2. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 01 May 2012 Link to this post

    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 >>

  3. DevCraft banner
  4. Piotr
    Piotr avatar
    16 posts
    Member since:
    Mar 2012

    Posted 07 May 2012 Link to this post

    Hi,
    Thank you for quick response.

    Best regards.
  5. Zazrovity
    Zazrovity avatar
    1 posts
    Member since:
    Jun 2012

    Posted 15 Jun 2012 Link to this post

    Hi Telerik,

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

    Best Regards,
  6. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 20 Jun 2012 Link to this post

    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 >>

Back to Top
DevCraft banner