I have a kendo ui jquery datasource that I'm using to populate my grid. I have added a custom toggle switch to show only active accounts or show all accounts. The switch works by calling the following function on change:
$(".my-page").on("change", "#myTableStatusToggle", function () { if ($("#myTableStatusToggle:checked").length > 0) { dataSource.filter({}); } else { dataSource.filter({ field: "Status", operator: "eq", value: "Active" }); } });