function writeenable_grid(grid, template){
    for (i = 0; i < grid.columns.length; i++){ //disable inline editing for all columns of the grid
        grid.columns[i].editable = template.columns[i].editable
    }
    grid.refresh()
}
reactivate inline editing of a grid
@param grid - grid to reanable
@param template - template to get the editables from