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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

sfDataGrid vertical scrollbar spacing

Thread ID:

Created:

Updated:

Platform:

Replies:

115580 Jan 23,2014 10:49 AM UTC Jan 27,2014 12:37 PM UTC WinRT 1
loading
Tags: General
Permjeet Pandha
Asked On January 23, 2014 10:49 AM UTC

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>


Jai Ganesh S [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;