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

EmptyText with binding

3 Answers 76 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Le_Roy
Top achievements
Rank 2
Le_Roy asked on 14 Dec 2010, 03:34 PM
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.

3 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 15 Dec 2010, 11:30 AM
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
0
Le_Roy
Top achievements
Rank 2
answered on 16 Dec 2010, 04:53 AM
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..
0
Valeri Hristov
Telerik team
answered on 17 Dec 2010, 04:25 PM
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
Tags
ComboBox
Asked by
Le_Roy
Top achievements
Rank 2
Answers by
Konstantina
Telerik team
Le_Roy
Top achievements
Rank 2
Valeri Hristov
Telerik team
Share this question
or