Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - nlabourdette

Pages: [1]
1
Help for ParamQuery Pro / Set isDirty Manually
« on: June 04, 2019, 08:05:20 pm »
I have a situation where I am updating rows in a grid with the updateRow method, but those rows aren't getting flagged as dirty for isDirty() checks.  Is there any way to programmatically set the dirty flag on those rows/cells?  Below I'll show an example of a call that isn't working for me right now.  Because the updateRow changes aren't being flagged as dirty, this if statement fails and my updates aren't being passed to my controller. 

        if (!$.active && !grid.getEditCell().$cell && grid.isDirty() && grid.isValidChange({ focusInvalid: true }).valid) {

            let gridChanges = grid.getChanges();

       }

Pages: [1]