1

I want to execute my javascript code postrender of my refiners. I have done that by using this:

ctx.OnPostRender = [];    
ctx.OnPostRender.push(ctx, function () {
        mycode();
    });

This all happens within my refiner display template.

However, this will only cause my code to run once. As I want to run my code after each "refresh", I need to have some kind of event I can use instead.

Anyone know where I can find such a thing?

  • Have you tried with AddPostRenderCallback(ctx, function () { // do something }); – Ransher Singh Apr 28 '15 at 19:12
  • No difference :( – Christoffel de Gruyter May 11 '15 at 9:05

Your Answer

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

Browse other questions tagged or ask your own question.