locked
Kendo Grid Date Format RRS feed

  • Question

  • User861911889 posted

    Hi,

    I am having a terrible problem in MVC. I have added a row to a table and when I am trying to refresh my grid in Jquery, it is showing the date field as /Date(57900000000000)/ like that, but when I F5 its all perfect. Please suggest how can I format the date field in Jquery.

    My code snippet

     $.ajax({
                        type: "POST",
                        url: '@Url.Action("AddJobDescription", "Home")',
                        data: JSON.stringify(data),
                        dataType: 'json',
                        contentType: 'application/json; charset=utf-8',
                        error: function (result) {
                            alert(result);
                        },
                        success: function (result) {
                            var dataSource = new kendo.data.DataSource({ data: result });
                            var grid = $('#GridVacancy').data("kendoGrid");
                            dataSource.read();
                            grid.setDataSource(dataSource);
                            grid.refresh();
                            $("#popAddJobDescription").data("kendoWindow").close();
                        }
                    });

    Wednesday, January 28, 2015 5:47 AM

All replies

  • User-1617232794 posted

    Have you tried this solutions ?

    kendo.parseDate("2000/12/22", "yyyy/MM/dd");
    

    Monday, February 16, 2015 6:25 AM