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. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Scrolling in DoubleTextBox

Thread ID:

Created:

Updated:

Platform:

Replies:

130881 Jun 8,2017 11:55 AM UTC Jun 30,2017 04:47 PM UTC WPF 5
loading
Tags: SfDataGrid
Denig
Asked On June 8, 2017 11:55 AM UTC

Hi

i had a DoubleTextBox in the SfDataGrid with scrolling for the values.
But when i scroll, the value add 1 and also the whole DataGrid is scrolling, so that this Row is over my cursor.
Can i stop scrolling the Datagrid when the Mouse is on the Field ?

greets

Muthukumar Kalyanasundaram [Syncfusion]
Replied On June 9, 2017 11:51 AM UTC

Hi Greets, 
 
Thank you for contacting Syncfusion support. 
 
Can you make sure, you are setting AllowScrollingOnCircle property as True as show the like below code, so DataGrid won’t get scrolling when mouse wheel over the Numeric Column editor. 
 
Code Snippet: 
<Syncfusion:SfDataGrid x:Name="dataGrid" Grid.Column="0" 
                        AllowEditing="True" ItemsSource="{Binding Path=EmployeeDetails}" AllowFiltering="True" AllowSorting="False"  
                        ShowRowHeader="True"> 
    <Syncfusion:SfDataGrid.Columns> 
        <Syncfusion:GridNumericColumn MappingName="EmployeeId" AllowScrollingOnCircle="True"/> 
        <Syncfusion:GridTextColumn MappingName="EmployeeName"/> 
        <Syncfusion:GridTextColumn MappingName="City"/> 
        <Syncfusion:GridTextColumn MappingName="MailId"/> 
    </Syncfusion:SfDataGrid.Columns> 
</Syncfusion:SfDataGrid> 
 
 
 
Please let us know if you are seeing different behavior and explain the same with details of how you are defining column or with modified sample. 
 
Regards, 
Muthukumar K 


Denig
Replied On June 9, 2017 01:10 PM UTC

Hi,

i havn't the Property AllowScrollinCircle in the Field SfDoubleTextbox in my DataGrid.

this is my Definition.
in the other Thread you see the Screenshot, how it look.

                   <syncfusion:SfDataGrid Name="lstArtikel"
                                   Height="640" Width="1280"
                                   SelectionChanged="lstArtikel_SelectionChanged" RowHeight="60" 
                                   AutoGenerateColumns="False" ShowRowHeader="False" HeaderRowHeight="0"
                                   SelectionUnit="Row"  CurrentCellBorderThickness="0,0,0,0"
                                   ShowGroupDropArea="False"
                                   GroupCaptionTextFormat="'{ColumnName} : {Key} - {ItemsCount} Artikel'" Margin="0,-1,0,1"  >

                        <syncfusion:SfDataGrid.GroupColumnDescriptions>
                            <syncfusion:GroupColumnDescription ColumnName="Warengruppe" />
                        </syncfusion:SfDataGrid.GroupColumnDescriptions>
                        <syncfusion:SfDataGrid.Columns >
.
.
.

                            <syncfusion:GridTemplateColumn Width="120" >
                                <syncfusion:GridTemplateColumn.CellTemplate>
                                    <DataTemplate>
                                        <syncfusion:DoubleTextBox Name="fldOrdermenge"  FontSize="18" Margin="10,0,10,0"
                                                    VerticalAlignment="Center" VerticalContentAlignment="Center" Width="90" TextAlignment="Right"
                                                    Value="{Binding Path=Gesamtsatz.Ordermenge, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}"
                                                    HorizontalAlignment="Right" MinValue="0" MaxValue="99999" Height="30" NullValue="0"
                                                    NumberDecimalDigits="3" IsScrollingOnCircle="True" EnableExtendedScrolling="True"
                                                    Validation.ErrorTemplate="{StaticResource errorTemplateRight}" ValueChanged="fldOrdermenge_ValueChanged"  >
                                        </syncfusion:DoubleTextBox>
                                    </DataTemplate>
                                </syncfusion:GridTemplateColumn.CellTemplate>
                            </syncfusion:GridTemplateColumn>
.
.
.


                        </syncfusion:SfDataGrid.Columns>
                    </syncfusion:SfDataGrid>

Muthukumar Kalyanasundaram [Syncfusion]
Replied On June 13, 2017 01:19 PM UTC

Hi Greets, 
 
Thanks for the update. 
 
We have analyzed your query. You can achieve your requirement by overriding ProcessPointerWheel  method in GridSelectionController class as shown like below code, 
 
Code Snippet: 
 
this.dataGrid.SelectionController = new GridSelectionControllerExt(this.dataGrid); 
 
internal class GridSelectionControllerExt : GridSelectionController 
{ 
    public GridSelectionControllerExt(SfDataGrid datagrid) : base(datagrid) 
    { 
 
    } 
    protected override void ProcessPointerWheel(MouseWheelEventArgs args, RowColumnIndex rowColumnIndex) 
    {            
        var currentCell = CurrentCellManager.CurrentCell;            
        var prop = DataGrid.GetVisualContainer().GetType().GetField("SuspendManipulationScroll", BindingFlags.NonPublic | BindingFlags.Instance); 
       if (currentCell.GridColumn.MappingName== "EmployeeId" && (currentCell.GridColumn is GridTemplateColumn) 
            &&  CurrentCellManager.CurrentRowColumnIndex.RowIndex == rowColumnIndex.RowIndex) 
        { 
            prop.SetValue(DataGrid.GetVisualContainer(), true); 
        }  
        else 
        { 
            prop.SetValue(DataGrid.GetVisualContainer(), currentCell.IsEditing); 
        } 
    } 
} 
 
 
 
Please let us know if you have any query. 
 
Regards, 
Muthukumar K 


Denig
Replied On June 29, 2017 02:46 PM UTC

Hello,

thx for answer.

i installed th latest version 15.2.0.43

this is the Error-Message





Muthukumar Kalyanasundaram [Syncfusion]
Replied On June 30, 2017 04:47 PM UTC

Hi Greets, 
 
Thanks for the update. 
 
We have checked your query. We were unable to reproduce the reported issue “Error- There was no suitable method to override in ProcessPointerWheel method”  in our side. For your reference, we have attached the video file in the below location.  
 
  
Could you please share some more information about your query as like,  
  1. Could you please check whether all the Syncfusion assembly have same version (15.2.0.43)  or not?. If assembly version are differed, could you please remove and reinstall the essential studio version again on your machine.
  
Please let us know if you have any query. 
 
Regards, 
Muthukumar K 


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

;