Kendo grid date column not formatting

前端 未结 7 813
悲哀的现实
悲哀的现实 2020-12-07 19:41

I have a KendoGrid like below and when I run the application, I\'m not getting the expected format for date column.

$(\"#empGrid\")         


        
7条回答
  •  北海茫月
    2020-12-07 20:48

    Try formatting the date in the kendo grid as:

    columns.Bound(x => x.LastUpdateDate).ClientTemplate("#= kendo.toString(LastUpdateDate, \"MM/dd/yyyy hh:mm tt\") #");
    

提交回复
热议问题