We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

sfDataGrid vertical scrollbar spacing

When using the sfDataGrid, the vertical scrollbar is overlaying part of the rightmost column of the grid.

If the rightmost column is a dropdown then it is easy to click the scrollbar when you really meant to click the dropdown.

Is there a way to ensure the vertical scrollbar does not overly the rightmost column?

<Grid>

<Grid.RowDefinitions>

<RowDefinition Height="Auto"/>

<RowDefinition Height="*"/>

</Grid.RowDefinitions>

<TextBlock Text="{Binding Path=Title}" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="10,0,0,10" FontSize="23" Grid.Row="0"/>

<grid:SfDataGrid x:Name="dataGrid" AllowSorting="True" AllowEditing="True" NavigationMode="Cell" EditTrigger="OnTap"

ShowRowHeader="True" ItemsSource="{Binding EntityValues}" ColumnSizer="SizeToHeader"

SelectionMode="Single" Grid.Row="1"

RowStyleSelector="{StaticResource rowStyleSelector}"

behaviours:DataGridCurrentCellEndEditCommandBehaviour.Command="{Binding CurrentCellEndEditCommand}">

<grid:SfDataGrid.SortColumnDescriptions>

<grid:SortColumnDescription ColumnName="Name" />

</grid:SfDataGrid.SortColumnDescriptions>

<grid:SfDataGrid.Columns>

<grid:GridTextColumn HeaderText="Name" MappingName="Name" />

<grid:GridComboBoxColumn ItemsSource="{StaticResource includeTypesComboBox}" MappingName="Include"

DisplayMemberPath="Name" SelectedValuePath="Value"/>

</grid:SfDataGrid.Columns>

</grid:SfDataGrid>

</Grid>


1 Reply

JG Jai Ganesh S Syncfusion Team January 27, 2014 12:37 PM UTC

Hi Permjeet,

 

Thank you for using Syncfusion products.

 

We have analyzed your query. By default the VerticalScrollbar in WinRT will appear as the part of the column. However you can achieve your requirement by writing the  style for the GridCell in   last dropdown column and set “padding”. We have prepared a sample based on this and please find the sample under the following location.

 

Sample: WinrtGridVerticalScrollbarSample.zip

 

Note: In the above sample the last combobox column will appeared based on the padding value.

 

Please let us know if you need further assistance.

 

Thank you,

Jai Ganesh S


Loader.
Live Chat Icon For mobile
Up arrow icon