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

[Solved] How to configure ui: "datetimepicker" filter without a callback?

1 Answer 150 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Fady
Top achievements
Rank 1
Fady asked on 25 Dec 2014, 11:37 AM
Currently I'm using a callback like below to add a datetimepicker to my column which does not seem to work in combination with persistence:

col.filterable = {
    ui: function(el) {
        el.kendoDateTimePicker({
            format:     'dd/MM/yy - HH:mm:ss',
            timeFormat: 'HH:mm:ss'
        });
    }
}

How can I set the format and timeFormat options when using:

col.filterable = {
    ui: 'datetimepicker'
}

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 25 Dec 2014, 12:04 PM
Hello Fady,

Setting advanced options is not possible when using the string overload of the ui configuration. You can search for any third party library or solution which allows you to serialize the functions as well: 

e.g. 

http://www.kristofdegrave.be/2012/07/json-serialize-and-deserialize.html

https://github.com/tarruda/super-json


Kind Regards,
Petur Subev
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
Fady
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or