apply $.when().done() to the call to the setRowCol function