• Resolved stevenmorlier

    (@stevenmorlier)


    Hello,
    I’m using postie to send picture to my site, and essential grid is displaying them… But, I need to go to one article and unpublish/publish, so essential grid would be ok to refresh…
    I have find some instruction like this :
    function ValueChanged(sender, args)
    {
    var grid = $find(‘GridId’); // GridId – Id of the Grid
    grid.sendRefreshRequest();
    }

    but I don’t know how to activate this (grid.sendfreshRequest(); each time a new mail is receved…

    Thx

    Steven

    https://ww.wp.xz.cn/plugins/postie/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    I’d need a little more information. Where did you find these instructions? It looks like javascript which would have little to do with Postie.

    Thread Starter stevenmorlier

    (@stevenmorlier)

    Hello,
    thx for your answer,
    I have search again for this code, https://www.syncfusion.com/forums/120910/refresh-grid and I see now it’s far from Essential Grid Plugin.
    The only instruction/API I found in essential grid is this : essapi_1.esredraw();

    My problem seems to be this :
    The grid update only if I publish myself, maybe postie don’t activate some hooks or something like this when publishing so it doesn’t update…

    ps : I don’t understand well Javascript.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Since I don’t own essential grid it is hard for me know know what is going on. Please start by contacting essential grid support and tell them what you are trying to do. They are the ones who are most likely to be able to help. If Postie needs an update to work better with essential grid please let me know.

    Thread Starter stevenmorlier

    (@stevenmorlier)

    Thx, I have contact them, waiting for answer…

    Thread Starter stevenmorlier

    (@stevenmorlier)

    Hello,
    Thx for your help, Themepunch has given me the solution, I’m happy to share it with you :

    Add theses lines in funtions.php

    add_filter('essgrid_query_caching', 'eg_disable_chache', 10, 2);
    
    function eg_disable_chache($do_cache, $grid_id){
    return false;
    }
    Plugin Author Wayne Allen

    (@wayneallen-1)

    Thanks for letting us know what the solution was.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘essential grid refresh’ is closed to new replies.