The igGrid column editor EditorType(ColumnEditorType.Date) with DataMode(DateEditorDataMode.Date) appears to load the cell editor with null when the column is clicked in .NET Core 2.0
(see attached screen snap)
This same code works correctly in ASP.NET 4.6.1 (the cell editor is loaded with “05:00”)
I’ve had such trouble with this forum editor, so have attached a link to the example zipped solution on one-drive instead:https://1drv.ms/u/s!Asqef4XMXF_I8QGw81kUwEPTTKpN
Environment:Visual Studio 15.5.5IgniteUI (17.2.456)Infragistics.Web.AspNetCore (6.17.2.211)
Screenshot.zip
Hello Michael,
Thank you for getting back to me.
Since Infragistics.web.aspnetcore 6.17.2.211 is not officially released yet I assumed that you have a private build provided. Your observation is correct, version 211 of the nugget package for AspNetCore have a dependency to the IgniteUI version 459. Since the fix for your issue is in the infragistics.web.aspnetcore package it is acceptable to change the dependency from version 459 (which is not officially released) to version 456.
Changing this dependency can be achieved by following these steps:
1) Open the Infragistics.web.aspnet.core6.17.2.211.nupkg with WinRAR or any similar program.
2) You will see the Infragistics.Web.AspNetCore.nuspec file (this file contains packages metadata). Open it in any text editor
3) Under the dependencies section find:
<dependency id="IgniteUI" version="17.2.459" />
Switch it to the version of the Ignite UI package that you have, for example 456.
Please test this approach on your side and let me know if you need any further assistance with this matter.
Regards,Vasya KacheshmarovaAssociate Software DeveloperInfragistics
Thank you Vasya!
I changed the dependency in the nuspec file to 456, and your sample project compiles and runs (the fix was so easy I'm a bit embarrassed...)
The cell editor still loads up with null, so the issue must be in IgniteUI 456 - assuming you're using 459
Would it be possible to get a private build containing these fixes?If I restore everything back to what the IG Platform Installer provides (Infragistics.Web.AspNetCore (6.17.2.202)), the grid does not run at all...
Thank you!
Terry Tiggemann(you can call me Michael - lol)
Vasya,
I wanted to let you see the symptom (see the screenshot in the attached zip file)
This is your sample project, untouched
I click the "Description" column of the "5:00am" row, the text "5:00am" is highlighted, and the editor for the "HH:MM" column is cleared
5265.Screenshot.zip
Hello Terry,
Thank you for the screenshot.
I see you’re running the sample on IE.
IE doesn’t seem to like dates, whose years that start with 00, for example the date for the first cell is “0001-01-01T00:00:00Z" if you create a new Date objects from that:
new Date(new Date("0001-01-01T00:00:00Z"));
You’ll get Invalid Date in IE. Since the date is invalid, the editor disregards it.
Since the client-side date objects count the milliseconds since January 1, 1970, 00:00:00 that may be a good starting point for your server-side date objects instead of year 0001, for example:
StartTime = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddSeconds(timeSecs);
That should work in all browsers.
Let me know if that solves your issue.
Best Regards,
Maya Kirova
Infragistics, Inc.
www.infragistics.com/support
Thank you Maya!
That did it
Strange, I'd copied that code from another project (.NET 4.6.1) and it worked there
If I knew how to supply just the seconds in the controller (for the column editor), I wouldn't have to pass a date object...
Terry