The scheduler implementation of the datasource differs from the usage in most of the other Kendo UI widgets. It doesn't seem to have a data property, which can be used to pass parameters to the controller , to enable custom filtering to be done on the server.
I would like to display two sets of data on one scheduler, and control what is displayed from a drop-down list. This is easy to accomplish with a grid e.g.:-
However, I don't seem able to do this with the scheduler. All I can see is a filter property, but since the data is coming from two different tables, handling the it this way is undesirable.
Currently I have two scheduler widgets in a tab control, but this causes some display issues, and is a bit clunky.
Thanks
I would like to display two sets of data on one scheduler, and control what is displayed from a drop-down list. This is easy to accomplish with a grid e.g.:-
.DataSource(dataSource=>dataSource
.Ajax()
.PageSize(20)
.Model(m=>
{
m.Id(p => p.LogID);
})
.Read(read=>read.Action(
"GetCRISList"
,
"NonDALoads"
)
.Data(
"srchLoad"
)
)
)
.Pageable(p=>p.Refresh(
true
))
.Sortable()
.Filterable()
<script type=
"text/javascript"
>
var
srch = 28;
function
selectionChange() {
var
dropdownlist = $(
"#loadDDL"
).data(
"kendoDropDownList"
);
var
dataItem = dropdownlist.dataItem();
srch = dataItem.LoadID;
//refresh Grid
//$("#Grid").data("kendoGrid").dataSource.read();
$(
'#Grid'
).data().kendoGrid.dataSource.page(1);
}
function
srchLoad() {
return
{
ID: srch
};
}
</script>
However, I don't seem able to do this with the scheduler. All I can see is a filter property, but since the data is coming from two different tables, handling the it this way is undesirable.
Currently I have two scheduler widgets in a tab control, but this causes some display issues, and is a bit clunky.
Thanks