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

List Items are gray until mouse hover

4 Answers 212 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Chris Rusu
Top achievements
Rank 1
Chris Rusu asked on 21 Feb 2012, 06:16 PM
When binding the RadListBox, the list items have a gray foreground color on load. It is only until I mouse over each item that they turn to black. After the mouse over it is working fine.

My Listbox is:
<telerik:RadListBox x:Name="lb1" Width="116" HorizontalAlignment="Left" IsEnabled="True" telerik:StyleManager.Theme="Windows7" ItemsSource="{Binding}">
               <telerik:RadListBox.ItemTemplate>
                   <StaticResource ResourceKey="Template1"/>
               </telerik:RadListBox.ItemTemplate>
           </telerik:RadListBox>

DataTemplate:
<Grid.Resources>
                <DataTemplate x:Key="Template1">
                    <WrapPanel>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="20"/>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                            <TextBlock Grid.Column="0" Text="{Binding Path=A1}"/>
                            <TextBlock Grid.Column="1" Text="{Binding Path=B1}" Margin="4,0,0,0"/>
                        </Grid>
                    </WrapPanel>
                </DataTemplate>
            </Grid.Resources>

4 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 24 Feb 2012, 08:18 AM
Hello,

We tried to reproduce the problem on our side, but to no avail. Could you refer to the attached sample and video demo and let us know if we missed something?


Kind regards,
George
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
David Hatfield
Top achievements
Rank 1
answered on 27 Feb 2012, 04:55 PM
Hello,

Wrap the grid in your example with a RadBusyIndicator and you should see the effect.  I am seeing the same behavior with some of my context menus.

Thanks.

David
0
Chris Rusu
Top achievements
Rank 1
answered on 27 Feb 2012, 05:41 PM
David is right. I forgot to mention I had a RadBusyIndicator. This indeed is what's causing the issue.
I had to put the ListBox outside and before the RadBusyIndicator to make it work,

<Grid>
        <telerik:RadListBox ...  />
<telerik:RadBusyIndicator...
</Grid>
0
Boyan
Telerik team
answered on 02 Mar 2012, 10:21 AM
Hi,

Thank you for the clarification, we managed to reproduce the bad behavior. It seems to be a bug with RadBusyIndicator. I have logged it in our PITS and you can follow its progress here.

Please, excuse us for the inconvenience. We have added points to your account for the report. Don't hesitate to contact us if you have other questions.


Greetings,
Boyan
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
ListBox
Asked by
Chris Rusu
Top achievements
Rank 1
Answers by
George
Telerik team
David Hatfield
Top achievements
Rank 1
Chris Rusu
Top achievements
Rank 1
Boyan
Telerik team
Share this question
or