I am retrieving the start date of my Scheduler like this:
function get_date() {
var scheduler = $("#scheduler").data("kendoScheduler");
var view = scheduler._selectedView;
var startDate = view._startDate;
return startDate;
}
I am trying to pass that date via ajax in order to populate my dropdownlist:
$("#drpHall").kendoDropDownList({
dataTextField: "hallname",
dataValueField: "hallid",
dataSource: {
transport: {
read: {
url: "chart_functions.cfc?method=GetHalls&returnformat=json",
data : {
dt: get_date()
},
dataType: "Json"
,success : function(result) {
alert(JSON.stringify(result));
}
}
}
, pageSize:10
},
index: 0
});
I am using the function get_date(), but the dropdownlist does not render when I do this. If I replace it with a simple "new Date()" parameter instead, the control renders (but obviously using the wrong date).
What do I need to do to pass that scheduler date properly?
Thanks!