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

GridViewComboBoxColumn scroll problem

7 Answers 150 Views
GridView
This is a migrated thread and some comments may be shown as answers.
LEE
Top achievements
Rank 1
LEE asked on 23 Jul 2014, 11:46 AM
I use RadGridView.

RadGridView horizontalScrollBar move GridViewComboBoxColumn displayed on the screen blanks. But verticalScrollBar no change.

What's the problem?

<telerikGridView:GridViewComboBoxColumn 
                                                Header="AccessibleTimeGroup" 
                                                DisplayMemberPath="Name" 
                                                CellStyleSelector="{StaticResource UserCardCellStyleSelector}" 
                                                DataMemberBinding="{Binding Card.AccessableTimeGroup}" ItemsSourceBinding="{Binding AccessibleTimeGroups}" />

7 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 24 Jul 2014, 06:55 AM
Hi,

I am not sure I understand what the exact problem is. Would you please explain it in more details, including a picture of how the issue appears?
Basically, I noticed you have not configured GridViewComboBoxColumn properly and this could be the reason for the behavior you experience. You can check the ComboBox Column documentation as a reference.

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
LEE
Top achievements
Rank 1
answered on 24 Jul 2014, 09:19 AM
Thank you for answer.

The initial screen


and scrollbar move


That is GridViewComboBoxColumn.
Sorry i'm not good at english.

<telerikGridView:RadGridView x:Name="radGridView"
                                            Grid.Row="2"
                                            ItemsSource="{Binding UserCards}"
                                            SelectedItem="{Binding SelectedUserCard, Mode=TwoWay}"
                                            Margin="5" 
                                            SelectionMode="Single"
                                            ShowGroupPanel="False"
                                            AutoExpandGroups="True"
                                            AutoGenerateColumns="False"
                                            RowDetailsVisibilityMode="Collapsed"
                                            RowIndicatorVisibility="Collapsed"
                                            CanUserFreezeColumns="True"
                                            FrozenColumnCount="2">
     <telerikGridView:RadGridView.Columns>
          <telerikGridView:GridViewComboBoxColumn 
                                                Header="{Binding ResourceWrapper.StringTable.AccessibleTimeGroup, Source={StaticResource StringTable}}" 
                                                DisplayMemberPath="Name" 
                                                CellStyleSelector="{StaticResource UserCardCellStyleSelector}" 
                                                DataMemberBinding="{Binding Card.AccessableTimeGroup}" ItemsSourceBinding="{Binding AccessibleTimeGroups}" />
     </telerikGridView:RadGridView.Columns>
</telerikGridView:RadGridView>
0
LEE
Top achievements
Rank 1
answered on 24 Jul 2014, 09:23 AM
0
Dimitrina
Telerik team
answered on 25 Jul 2014, 10:52 AM
Hello,

Thank you. As seen on the images, it seems the value disappears as you just scroll a little bit and the combo column is still in view mode.
Looking at your code snippet, I notice you have not specified a SelectedValueMemberPath.  Would you please try configuring this setting fine?

You can also check the Empty Cells in Combobox column article on some problematic scenarios.

If this does not help, may I ask you to isolate the issue in a demo project and send it to us in a support ticket? You can take a look at this blog post for a reference on how to isolate an issue. 

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
LEE
Top achievements
Rank 1
answered on 29 Jul 2014, 01:54 AM
Thank you for answer. 
However, other problems found. 
Click another GridViewComboBoxColumn change to a blanks. Only AccessibleTimeGroup changed.
SelectedValueMemberPath problem?

Another GridViewComboBoxColumn source.
<telerikGridView:GridViewComboBoxColumn 
                                                Header="CardStatus" 
                                                DisplayMemberPath="Name" SelectedValueMemberPath="Code" 
                                                CellStyleSelector="{StaticResource UserCardCellStyleSelector}" 
                                                DataMemberBinding="{Binding Card.Status}" ItemsSourceBinding="{Binding CardStatus, Source={StaticResource LocalLocator}}" />
0
Dimitrina
Telerik team
answered on 29 Jul 2014, 12:08 PM
Hello,

Is CardStatus collection a property of the bound business object (UserCard)?
If so, why do you additionally set a Source in your definition:
ItemsSourceBinding="{Binding CardStatus, Source={StaticResource LocalLocator}}"

If not and the CardStatus collection is defined in your model, then you should specify ItemsSource instead:
ItemsSource="{Binding CardStatus, Source={StaticResource LocalLocator}}"

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
LEE
Top achievements
Rank 1
answered on 31 Jul 2014, 03:52 AM
Thank you for answer. 
Been resolved in a different way.
Tags
GridView
Asked by
LEE
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
LEE
Top achievements
Rank 1
Share this question
or