Why kendo Ui -grid date is not sorting properly?

后端 未结 2 688
执念已碎
执念已碎 2021-01-25 13:26

value is ReinsDepositAmount

**

output

**

I have recently stocked with one of the application date sorting in

2条回答
  •  北海茫月
    2021-01-25 14:00

    You can try parsing the date from response.

    http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#configuration-schema.parse

    schema: {
        parse: function(response) {
          for (var i = 0; i < response.length; i++) {
            response[i].ReinsDepositDate = kendo.parseDate(response[i].ReinsDepositDate, "dd/MM/yyyy");
          }
          return response;
        }
      }
    

    Hope this helps.

提交回复
热议问题