This is a migrated thread and some comments may be shown as answers.

Grid filterable date selection

1 Answer 36 Views
Grid
This is a migrated thread and some comments may be shown as answers.
RGTech
Top achievements
Rank 1
RGTech asked on 17 Jan 2014, 01:46 AM
Hi,

How can I change the date format of the filterable column in the KendoGrid?

It's currently MM/dd/yyyy, I need to change it to dd/MM/yyyy.

http://img.ctrlv.in/img/52d88b349bfdd.jpg

Thanks.

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 17 Jan 2014, 01:30 PM
Hi Mike,


You could use the columnMenuInit event to access the datepicker and set the format configuration option.
E.g.
function ColumnMenuInit(e) {
    e.container.find("[data-role='datepicker']").each(function () {
        $(this).data("kendoDatePicker").setOptions({ format: "dd/MM/yyyy" });
    });
}

I wish you a great day!

Regards,
Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
RGTech
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or