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

Comboboxcolumn style's bug when scrolling

3 Answers 56 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Oleg
Top achievements
Rank 1
Oleg asked on 18 Oct 2013, 03:29 PM
The GridView design like this




After scrolling the bottom scroll bar, the style of column "Exchange" and "Sector" are messed up.




And scroll it again, sometimes it will look like this:




Here attached the xaml code:

       <telerik:RadGridView Grid.Row="0" x:Name="CommoditiesGrid"
            ItemsSource="{Binding Commodities}"
            AutoGenerateColumns="False"
            IsBusy="{Binding IsBusy}"
            IsEnabled="True"
            IsReadOnly="{Binding IsEditable, Converter={StaticResource NotOperatorValueConverter}}"
            ActionOnLostFocus="CancelEdit"
            ShowInsertRow="{Binding IsEditable}"
            CanUserInsertRows="{Binding IsEditable}"
            CanUserDeleteRows="{Binding IsEditable}"
            CanUserFreezeColumns="False"
            CanUserReorderColumns="False"
            CanUserResizeColumns="True"
            CanUserSortColumns="True"
            IsFilteringAllowed="False"
            ShowGroupPanel="False"
            CanUserResizeRows="False"
            CanUserSelect="True"
            SelectedItem="{Binding SelectedCommodity, Mode=TwoWay}"
            IsSynchronizedWithCurrentItem="True"
            ScrollViewer.HorizontalScrollBarVisibility="Auto"
            ScrollViewer.VerticalScrollBarVisibility="Auto"
            Loaded="CommoditiesGrid_Loaded"
            DataLoaded="CommoditiesGrid_DataLoaded"
            RowIsExpandedChanging="CommoditiesGrid_RowIsExpandedChanging"
            AddingNewDataItem="CommoditiesGrid_AddingNewDataItem"
            Deleting="Grid_Deleting"
            BeginningEdit="Grid_BeginningEdit"
            RowValidating="Grid_RowValidating"
            RowEditEnded="Grid_RowEditEnded"
            CopyingCellClipboardContent="Grid_CopyingCellClipboardContent"
            Pasting="Grid_Pasting"
            CellEditEnded="CommoditiesGrid_CellEditEnded"
            >
 
            <telerik:RadGridView.HeaderRowStyle>
                <Style TargetType="telerik:GridViewHeaderRow">
                    <Setter Property="Height" Value="32" />
                </Style>
            </telerik:RadGridView.HeaderRowStyle>
 
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn UniqueName="Symbol" Header="Symbol"
                    HeaderCellStyle="{StaticResource GridViewHeaderCellStyle}" HeaderTextAlignment="Left" TextAlignment="Left" Width="70"
                    DataMemberBinding="{Binding Symbol, Mode=TwoWay, TargetNullValue=''}" />
                <telerik:GridViewDataColumn UniqueName="Description" Header="Description"
                    HeaderCellStyle="{StaticResource GridViewHeaderCellStyle}" HeaderTextAlignment="Left" TextAlignment="Left" Width="250"
                    DataMemberBinding="{Binding Description, Mode=TwoWay, TargetNullValue=''}" />
                <telerik:GridViewComboBoxColumn UniqueName="ExchangeId" Header="Exchange"
                    HeaderCellStyle="{StaticResource GridViewHeaderCellStyle}" HeaderTextAlignment="Left"  Width="380"
                    DataMemberBinding="{Binding ExchangeId, Mode=TwoWay}" SelectedValueMemberPath="Id">
                    <telerik:GridViewComboBoxColumn.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Width="354">
                                <TextBlock Text="{Binding Name}" FontWeight="Bold" />
                                <TextBlock Text="   " />
                                <TextBlock Text="{Binding Description}" />
                            </StackPanel>
                        </DataTemplate>
                    </telerik:GridViewComboBoxColumn.ItemTemplate>
                </telerik:GridViewComboBoxColumn>
                <telerik:GridViewComboBoxColumn UniqueName="SectorId" Header="Sector"
                                                    HeaderCellStyle="{StaticResource GridViewHeaderCellStyle}"
                                                    HeaderTextAlignment="Left" TextAlignment="Left" Width="140"
                                                    DataMemberBinding="{Binding SectorId, Mode=TwoWay}"
                                                    SelectedValueMemberPath="Id"
                                                    DisplayMemberPath="Description">
                    <!--<telerik:GridViewComboBoxColumn.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Width="114">
                                <TextBlock Text="{Binding Description}" />
                            </StackPanel>
                        </DataTemplate>
                    </telerik:GridViewComboBoxColumn.ItemTemplate>-->
                </telerik:GridViewComboBoxColumn>
 
                ...
 
                <telerik:RadGridView.ChildTableDefinitions> balabala </telerik:RadGridView.ChildTableDefinitions>
                <telerik:RadGridView.HierarchyChildTemplate>balabala </telerik:RadGridView.HierarchyChildTemplate>
</telerik:RadGridView>

3 Answers, 1 is accepted

Sort by
0
Vera
Telerik team
answered on 22 Oct 2013, 08:22 AM
Hi Oleg,

I tried to reproduce the issue using the provided details but I was not able to. Attached you can find the project used for the test. Are you able to get the problem on it?

Regards,
Vera
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Oleg
Top achievements
Rank 1
answered on 22 Oct 2013, 04:17 PM
Hi Vera,

The bug still shows in your code.

First it looks good as picture 1.
Move the bottom scroll bar to the position like picture 2. And "Club" column's style will change.
Scroll back results shows in picture 3.
If scroll more until club column hide into left side and scroll back. The style will recover to picture 1.

And in my project, The behavior looks like that but more unpredictable. 
0
Vera
Telerik team
answered on 23 Oct 2013, 09:39 AM
Hello Oleg,

Indeed, you are right. We reproduced the problem and we will investigate it further in order to provide a fix.

Please excuse us for the inconvenience caused. Your Telerik points have been updated accordingly.

Regards,
Vera
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Oleg
Top achievements
Rank 1
Answers by
Vera
Telerik team
Oleg
Top achievements
Rank 1
Share this question
or