Flavio Lepka
Top achievements
Rank 1
Flavio Lepka
asked on 27 Sep 2013, 05:41 PM
I am using kendo date picker in couple of places in my application, and need to change the background when the date is greater and equal to 10/2013. How this in the attached image.
http://jsfiddle.net/TXUDw/2/
http://jsfiddle.net/TXUDw/2/
8 Answers, 1 is accepted
0
Hello Flavio,
You can change the background of certain dates by adding a custom class through a Kendo UI Template, as shown in this demo.
Regards,
Alexander Popov
Telerik
You can change the background of certain dates by adding a custom class through a Kendo UI Template, as shown in this demo.
Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Flavio Lepka
Top achievements
Rank 1
answered on 03 Oct 2013, 02:54 PM
Hi,
I try this way, but i can´t do. Could be give a demo in jsddle.net.
tks.
I try this way, but i can´t do. Could be give a demo in jsddle.net.
tks.
0
Hi Flavio,
Here is an example here.
Regards,
Alexander Popov
Telerik
Here is an example here.
Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Flavio Lepka
Top achievements
Rank 1
answered on 04 Oct 2013, 12:51 PM
Hi,
Alexander Popov
Thanks for your example, i did some change, because i need this way. Between 12/2013 and 12/2015 the background change to red.
Is it possible?Can you help me, please?
http://jsbin.com/ETUtemA/1/edit
Thanks a lot for helped.
http://www.kendoui.com/clientsfiles/8c3a826e-9aae-631b-85d4-ff000054ddc5_img_27092013_124748.png?sfvrsn=0
Alexander Popov
Thanks for your example, i did some change, because i need this way. Between 12/2013 and 12/2015 the background change to red.
Is it possible?Can you help me, please?
http://jsbin.com/ETUtemA/1/edit
Thanks a lot for helped.
http://www.kendoui.com/clientsfiles/8c3a826e-9aae-631b-85d4-ff000054ddc5_img_27092013_124748.png?sfvrsn=0
0
Hi Flavio,
I apologize for misleading you. The DatePicker currently supports templates only for the "month" view and you want to highlight items in the "year" view. This could be achieved by using the DatePicker's open event and then searching for the cells containing the months you'd like to highlight. Here is an example of that behavior.
Regards,
Alexander Popov
Telerik
I apologize for misleading you. The DatePicker currently supports templates only for the "month" view and you want to highlight items in the "year" view. This could be achieved by using the DatePicker's open event and then searching for the cells containing the months you'd like to highlight. Here is an example of that behavior.
Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Flavio Lepka
Top achievements
Rank 1
answered on 06 Oct 2013, 06:16 PM
Hi
Alexander Popov,
Thanks a lot. But this way when changed for next month and back to previous disappear.
Alexander Popov,
Thanks a lot. But this way when changed for next month and back to previous disappear.
0
Hello again,
Basically when you open the DataPicker a Calendar widget is initialized, so you should be able to subscribe for the it's navigate event and highlight the dates from there. Here is an example.
Regards,
Alexander Popov
Telerik
Basically when you open the DataPicker a Calendar widget is initialized, so you should be able to subscribe for the it's navigate event and highlight the dates from there. Here is an example.
Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Accepted
Flavio Lepka
Top achievements
Rank 1
answered on 08 Oct 2013, 08:02 PM
Tks a lot!!!You saved my life.That´s perfect.