Hi,
I am not sure what did I miss, when I call widget.eval(“this.cal.refresh()”); it would give me an error saying refresh is not a function, this.cal is assigned in init of widget as follows this.cal = $(this.container).data(“dxScheduler”);
Thanks.
Hi,
Here is the complete code:
$(this.container).dxScheduler({
dataSource: wisej.web.DesignMode ? null :
DevExpress.data.AspNet.createStore({
key: “ID”,
loadUrl: url + “&action=load”,
insertUrl: url + “&action=insert”,
onUpdating :function(data){
console.log(data);
} ,
onInserting :function(data)
{
console.log(data);
},
onBeforeSend :function(operation, ajaxSettings)
{
if(operation==”insert”)
{
//alert(JSON. stringify(ajaxSettings));
}
}
})
,
showBorders: true,
width:”100%”,
views: [“day”, “workWeek”, “month”],
remoteFiltering: true,
currentView: “day”,
startDayHour: 6,
endDayHour: 18,
textExpr:”SUBJECT”,
startDateExpr: “STARTDATE”,
endDateExpr:”ENDDATE”,
allDayExpr : “AllDay”
});
this.cal = $(this.container).data(“dxScheduler”);
===================================================
Please take note, that it is running and I can interact with the scheduler, only when I want to manually refresh from a button click, by calling
widget.eval(“this.cal.refresh();”); <==== this is the line the raised an error.
Thanks.
In a datagrid, I can call any function of the dx datagrid using widget.eval(“this.grid.xxxx”), I am just following the examples from your integration 1, Thanks.