I want to display data on particular dates, i have two array which contains some dates, if my current date matches with tht array date then i want to shoe some value from tht array.
I tried to use each loop on that array on content of calendar but its giving runtime error called Invalid Template.....Any Suggestions????
I have two array which are Two dimensional,
I tried to use each loop on that array on content of calendar but its giving runtime error called Invalid Template.....Any Suggestions????
I have two array which are Two dimensional,
populateCalendar:
function (Holiday) {
var holidaydateList = []
//constructing holidaydatelist array from Holiday object...
$.each(Holiday, function (index, model) {
var day = model.HolidayDate.toString();
holidaydateList.push({ HolidayDate: day.substring(6, day.length - 2), HolidayData: model.HolidayName });
});
$("#forecastCalendar").kendoCalendar({
//value: today,
month: {
// template for dates in month view
content:
'# jQuery.each([' + holidaydateList + '],function(index,item){ #' +
'# if (item.HolidayDate == +data.date) { #' +
'<div style="background-color: Aqua">item.HolidayData</div>' +
'# } else { #' +
'<div></div>' +
'# } #' +
'# }); #' +
'#= data.value #'
},
footer: "Today - #=kendo.toString(data, 'd') #"
});