Reset Filters When revisiting a view in Umbraco custom Section
Hi I'm using custom sections in Umbraco for a while now, and I noticed that filters still there when I revisit a dashboard I've filtered its data before.
Scenario:
Visit custom section dashboard view
Filter data using any of the filters
navigate to any default/custom sections
navigate back to the custom section you visited in step 1
after biding the data the filters get its selected state back
Note that I create dashboard view the same way used in Users default section.
This should return All as when you first visit the page:
vm.getFilterName(vm.CountryFilter)
body of function is:
function getFilterName(array) {
var name = "All";
var found = false;
angular.forEach(array, function (item) {
if (item.selected) {
if (!found) {
name = item.name
found = true;
} else {
name = name + ", " + item.name;
}
}
});
return name;
}
The filter state should be reset when I revisit a view as the data is not filtered when the page loads.
Reset Filters When revisiting a view in Umbraco custom Section
Hi I'm using custom sections in Umbraco for a while now, and I noticed that filters still there when I revisit a dashboard I've filtered its data before.
Scenario:
Note that I create dashboard view the same way used in Users default section.
This should return All as when you first visit the page:
body of function is:
The filter state should be reset when I revisit a view as the data is not filtered when the page loads.
is working on a reply...