Strange behavior of GridNumericColumn

Hi alltogehter,

i use this *.XAML and a very easy ViewModel:

             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:syncfusion="http://schemas.syncfusion.com/wpf"           
             xmlns:prism="http://prismlibrary.com/"            
             prism:ViewModelLocator.AutoWireViewModel="True">
   
   
       
                                       AutoGenerateColumns="False"
                               AllowEditing="True"
                               AddNewRowPosition="Bottom"                        
                               ItemsSource="{Binding Items}"
                               CurrentCellValueChanged="dataGrid_CurrentCellValueChanged">
           
               
                                                               NumberDecimalDigits="2"                                        
                                               MappingName="WorkTime" />
           
       
   

GridTextColumn works as expected.
The GridNumericColumn is ok i during the first edit cycle. Then, changing the row and start editmode a second time, it seems that Foregorund and Background has the same Color, because i can't see the FieldValue. I can change the value 'blind', when leaving the column, the changed value is showing.
The Solution is Net.Core 3.x
Any idea
Thanks
Peter

3 Replies

VS Vijayarasan Sivanandham Syncfusion Team April 17, 2020 02:46 PM UTC

Hi Forstmeier Peter,

Thank you for contacting Syncfusion support.

We have checked the reported issue in simple sample and unable to replicate the issue from our end. Please find the tested sample and video demo from our end in the below link,

Sample Link: https://www.syncfusion.com/downloads/support/forum/153405/ze/GridNumericColumn2080229287

Video Link: https://www.syncfusion.com/downloads/support/forum/153405/ze/Editing-1879419450 

Can you confirm the below requested information,
        1.Code snippet related to customization in SfDataGrid
        2.Did you apply any customization in CurrentCellValueChanged event
        3.Did you apply cell style with condition in SfDataGrid

if you still facing the same issue? If yes, please modify the sample based on your scenario. 

Regards,
Vijayarasan S 



FP Forstmeier Peter April 17, 2020 06:15 PM UTC

Hi,
the Video is great and the sample is working as expected.

I remove the eventhandler but Nothing changes.

1)I didn't use Code to customize the SfDataGrid
2) 
3) I use some styles but not in this part of Code,

By the way, GridDateTimeColumn has the same strange behavior. First edit, the Calendar is showing up, second and further on,nothing.

Here is my ViewModel:
using ErpDach.Base.Business.Models.Entities.DTOS.TimeTracking;
using ErpDach.Base.ViewModels;
namespace ErpDach.Modules.TimeTracking.ViewModels
{
    public class ProjectWorkTimeLineViewModel : ValidatableDataObject
    {
        public ProjectWorkTimeLineViewModel(ProjectWorkTimeDto dto)
        {
            Dto = dto;
            SetValues();
        }
        private void SetValues()
        {
            _job = Dto.Job;
            _workTime = Dto.WorkTime;
        }

        string _job;
        public string Job
        {
            get => _job;
            set
            {
                SetProperty(ref _job, value);
                Dto.Job = _job;
            }
        }
        double _workTime;
      public double WorkTime
        {
            get => _workTime;
            set
            {
                System.Console.WriteLine("WorkTime");
                SetProperty(ref _workTime, value);
                Dto.WorkTime = _workTime;
            }
        }
        ProjectWorkTimeDto Dto { get; set; }
    }
}
And my CodeBehind:

    public partial class ProjectWorkTime : UserControl
    {
        public ProjectWorkTime()
        {  
            InitializeComponent();      
        }
    }
}

You see, nothing spezial

Peter


VS Vijayarasan Sivanandham Syncfusion Team April 20, 2020 03:03 PM UTC

Hi Forstmeier Peter,

 
We have created a new incident under your Direct Trac account. We suggest you to follow up with the incident for further updates. Please log in using the below link.  
 
Vijayarasan S 


Loader.
Up arrow icon