This question is locked. New answers and comments are not allowed.
We're trying to use the new RadDataBar-control inside a ListBox but it doesn't seem to work. First we thought that we're just doing something wrong when binding the value of the DataBar to the collection but even with a hard-coded value the DataBar isn't shown.
If we only have a hard-coded RadDataBar, we can see it correctly:
But if the RadDataBar is inside a DataTemplate, it's not working:
When run, we can see the TextBlock's OK but even though the RadDataBar's value is fixed to -10, the bar isn't drawn at all.
Any ideas?
If we only have a hard-coded RadDataBar, we can see it correctly:
<telerik:RadDataBar Height="20" Margin="2" BorderBrush="Gray" BorderThickness="1" Value="-10" OriginValue="30" />But if the RadDataBar is inside a DataTemplate, it's not working:
<ListBox Grid.Row="1" x:Name="Items"> <ListBox.ItemTemplate> <DataTemplate> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition /> </Grid.ColumnDefinitions> <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Name}" /> <telerik:RadDataBar Grid.Column="1" Height="20" Margin="2" BorderBrush="Gray" BorderThickness="1" Value="-10" OriginValue="30"/> </Grid> </DataTemplate> </ListBox.ItemTemplate></ListBox>When run, we can see the TextBlock's OK but even though the RadDataBar's value is fixed to -10, the bar isn't drawn at all.
Any ideas?