Hello I'm working on a ASP.NET MVC 5 project with the Telerik Scheduler and was hoping to get a little assistance here. I'm not finding too much documentation in regards to Client-Side (JavaScript) filtering.
In addition to my Scheduler control, I have two additional controls which I would like to use to drive my scheduler: a Dropdown which cascades into a multi- select. (you select a single option from the dropdown, then multiple options in a multiselect).
I need to figure out how to filter my Scheduler control based on both of these, as well as having a default or "fallback" option - if nothing is selected.
I have this code now, which works great for the multi-select. I had something similar for the dropdown but the issue I was having is when you select an option in the dropdown, I wasn't sure how to get it back to a 'no-selection' or 'default' fallback where it will go back to displaying all events. Also, is it possible to combine these two filters into one, or simplify this further?
$("#room").change(function (e) { var selected = $.map($("#room :selected"), function (option) { return parseInt($(option).val()); }); var filter = { logic: "or", filters: $.map(selected, function (value) { return { operator: "eq", field: "RoomID", value: value }; }) };Thanks
Brandon​