kendo grid date column format after filtering

2 posts, 0 answers
  1. Richard
    Richard avatar
    9 posts
    Member since:
    Jun 2016

    Posted 23 Jun Link to this post

    I have a kendo MVC grid that has a bound column like below

     

    columns.Bound(c => c.CreatedDate).Title("Submitted on").Filterable(ftb => ftb.Cell(cell => cell.Operator("contains"))).Format("{0: MM/dd/yyyy HH.mm.ss}");

     

    the column formats fine when first loading the view: 06/22/2017 15.02.00
    but i have some buttons which use AJAX to post back and get back filtered data and when re-populating the grid the column looks like this:

    /Date(1498161720000)/

    Any help?

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2066 posts

    Posted 27 Jun Link to this post

    Hi Richard,

    In order for the format to be applied correctly, the objects for that column should be Date object. With that in mind, please provide more information on your exact implementation and especially, how you are re-populating the Grid.


    Regards,
    Konstantin Dikov
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top