0

I have a Date Filter webpart connected to a List on page.

I am setting the default value of the list with JQuery (it sets that value to the next Wednesday). Here's a jfiddle showing how we are changing the Date Filter.

And it works, the date changes, but the filter doesn't get applied to the list with the new date.

It appears we need to call SetApplyFiltersToActiveIfPresent(); but adding this function call to our code doesn't do anything.

How can I apply the filter using JS/JQuery?

2
  • Are you using 2013? Commented Feb 9, 2016 at 9:10
  • Yes. (need 15 characters.....) Commented Feb 9, 2016 at 16:19

1 Answer 1

0

Is there any chance you could try the "Query string Url" filter connected to your list view web part (with appropriate column)? If you need to, you can also pass the date explicitly in the querystring through JS or jQuery.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.