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