Dynamic assignment of colModel is fine, however please ensure you have used correct jquery selector "#grid_editing".
$("#grid_editing").pqGrid( "option" , "colModel", colModelTemp );
kindly share a jsfiddle of the mentioned issue so that it can be checked.