I have two dropdowns and a mvc kendo scheduler. I am trying to display the scheduler events based on two drop downs selections. Could you please help me? Here is the code
.DataSource(d=>
{
d.Model(m =>
{
m.Id(f => f.TaskID);
});
d.Read(read =>
{
read.Action("schedulerDisplay", "")
.Data("passParameters");
})
.ServerOperation(true);
})
<script>
function passParameters() {
return {
param1: $("#dropdown1").val(),
param2: $("#dropdown2").val()
};
}
</script>