Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
igGrid REST sample with Date does not work
posted

I have changed the REST sample to edit date times although 

1. I added in the Customer a Date Field

public Customer(Northwind.Customer c)
{
this.CustomerID = c.CustomerID;
this.CompanyName = c.CompanyName;
this.ContactName = c.ContactName;
this.Address = c.Address;
this.City = c.City;
this.Orders = new List<Order>();
this.Date = DateTime.Today;
}

2.  I added in the RestEditing.aspx the Column for editing.

column.For(x => x.Date).HeaderText("Date").DataType("date");

3. Then I went I set a breakpoint into UpdateCustomer

[HttpPut]
public void UpdateCustomer(Infragistics.Web.Mvc.Samples.Models.Customer customer)

and discovered that the Date isn't set in the Rest operation.

I changed the Field to string and saw that this value is in the field.

Date = "/Date(1383782400000)/"

Is this a Bug or what can I do to enable REST with the jquery Grid for Dates.

Thanks in advance

Thomas Stocker