That was what I was looking for, I found it this weekend, and figured out where the problem is:
I am using a system of filters based on multiselect boxes to filter the events:
//Employee Filter array correction
if
(empvalues.length > 0) {
$.each(empvalues,
function
(i, v) {
empfilter.filters.push({ field:
"Employee.EmployeePic"
, operator:
"eq"
, value: v });
});
}
else
{
empfilter = {field:
"Employee.EmployeePic"
, operator:
"neq"
, value:
"InvalidString"
};
}
//Status Filter array correction
if
(statvalues.length > 0) {
$.each(statvalues,
function
(i, v) {
statfilter.filters.push({ field:
"Status.StatusSeq"
, operator:
"eq"
, value: v });
});
}
else
{
statfilter = { field:
"Status.StatusSeq"
, operator:
"neq"
, value: -1 };
}
//Access Filter array correction
if
(accvalues.length > 0) {
$.each(accvalues,
function
(i, v) {
accfilter.filters.push({ field:
"EmployeeAccessLevelScheduler"
, operator:
"eq"
, value: v });
});
}
else
{
accfilter = { field:
"EmployeeAccessLevelScheduler"
, operator:
"neq"
, value: -1 };
}
var
filter = {
logic:
"and"
, filters: [empfilter, statfilter, accfilter]
};
dataSource.dataSource.filter(filter);
AdjustMasterScheduleGridSize();
It works everywhere except for one instance, and that is when Clear all boxes. When I watch the watchpoint, after clearing all three boxes, the entire datasource pulls through, and not just the one based on the view I am currently in.
So while my day view should have 56 items for instance, it has all 335.
Since I am applying the filter that pulls all items, it makes sense, but after applying that filter, I need to get the scheduler to recognize which view is selected and limit the results again, and I'm unsure how to accomplish that feat. I think that was my problem last week also, as with this revelation I noticed if after clearing my filter, if I click the view button again, the schedule adjusts itself appropriately.