3

Is there a way to catch the event fired alter filtering a list view webpart? (fintere using the default filter)

I need to get the items in the view after a filter has been applied.
Is there a sort of callback?

5

You could use Client Side Rendering (JS Link) and the OnPostRender property. When you use a filter in the list view it will trigger the OnPostRender again. Check out this article for more information.

Code example:

(function () {
    var overrideCtx = {};

     overrideCtx.OnPostRender = [];
     overrideCtx.OnPostRender.push(function()
     {
        console && console.log("Filter done");
     });
    SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideCtx);
})();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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