EmptyText with binding

4 posts, 0 answers
  1. Le_Roy
    Le_Roy avatar
    31 posts
    Member since:
    Nov 2009

    Posted 14 Dec 2010 Link to this post

    Hello there!
    Got some suggestion(bug report maybe?).
    When I'm doing like this (Code omited)
    <telerik:RadComboBox x:Name="combo" Grid.Column="2"
      EmptyText="{Binding Converter={StaticResource LocaleTooltipConverter}, ConverterParameter=SelectSmthng}"
      SelectionBoxTemplate="{StaticResource SelectionBoxTemplate}" ItemTemplate="{StaticResource ComboBoxCustomTemplate}"
      telerik:TextSearch.TextPath="Name"
      SelectedIndex="{Binding Path=Data, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True}"
      SelectionChanged="OnSelectionChanged"
      Style="{StaticResource FilterableComboBox}"
      TextInputStart="OnTextInput"/>
    EmptyText is always empty.
    My converter returns data from static collection, which one is filled from RIA on application startup (in mainpage's constructor).
    So, can EmptyText property be changed to be not only "constant value"?
    Anyway in that case same scenario is working
    <TextBlock Style="{StaticResource CenteredLabel}" Text="{Binding Converter={StaticResource LocaleTooltipConverter}, ConverterParameter=SelectSmthng}"/>
    So, according to that, I've got idea, that EmptyText property is not bindable.
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 15 Dec 2010 Link to this post

    Hi Le_Roy,

    Thank you for the code snippets.

    Unfortunately, the EmptyText property cannot be bound.
    Sorry if that causes you any inconvenience.
    If we receive enough clients' requests we will consider changing this behaviour for one of our future releases.

    Please let us know if you have any other concerns about our controls.

    Regards,
    Konstantina
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. DevCraft banner
  4. Le_Roy
    Le_Roy avatar
    31 posts
    Member since:
    Nov 2009

    Posted 15 Dec 2010 Link to this post

    Its a shame. Flexibility of product cannot rely on "clients requests".
    What about your own `forward-moves`? Its not a "request for a new control".
    Its must have feature for this control to be used in database driven localiziation scenario.(Possibility of Localization must be one of the most important features, we are living in many nations and languages world)
    And you tell me "Sorry if that causes you any inconvenience.
    If we receive enough clients' requests". Once again i got more + to choose another vendor..
  5. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 17 Dec 2010 Link to this post

    Hi Dimitry,

    I apologize for the misunderstanding. Actually, the EmptyText property is a regular dependency property and can be bound, and if the source object raises PropertyChanged events correctly, RadComboBox will update its UI.

    Please, find attached a very simple project that represents our understanding of your scenario (refer to ViewModel1) and a suggestion how the things should work (refer to ViewModel2). If I am missing something important, please modify my project so it represents your scenario, or just send me a simple version of yours, that can be used to observe the problem. I will respond with suggestions how to avoid the problem immediately.

    Regards,
    Valeri Hristov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
Back to Top