Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2745
Formula recalculation after igUpdate
posted

I need the formula to recalculate after I programmatically call the method "updateRow".  How do I do this?  My formula is very specific at runtime and I cannot regenerate it.

  • 2745
    Verified Answer
    Offline posted

    I was able to loop through the my dynamic columns and call the formula like this:

    for (var i = 1; i < $(this).data("max"); i++) {

    record["P" + i] = $("#Grid").igGrid("getUnboundColumnByKey", "P" + i).formula(record, null);

    }

    It works like a charm!  The formula is built to automatically adjust the value based on the data record so the output is perfect every time!  Yay!