This is a WIP patch - there's still a problem with the saved
sort priorities actually getting used when a grid is initalized.
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Jason Etheridge <jason@EquinoxInitiative.org>
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
const c: GridColumnPersistConf = {name : col.name};
if (col.align !== 'left') { c.align = col.align; }
if (col.flex !== 2) { c.flex = Number(col.flex); }
- if (Number(col.sort)) { c.sort = Number(c.sort); }
+ if (Number(col.sort)) { c.sort = Number(col.sort); }
return c;
});
}
// link columns to scope after loadConfig(), since it
// replaces the columns array.
$scope.columns = grid.columnsProvider.columns;
+ grid.dataProvider.refresh();
});
// NOTE: grid.collect() is first called from link(), not here.
// No need to store col.visible, since that's implicit
if (col.align != 'left') c.align = col.align;
if (col.flex != 2) c.flex = col.flex;
- if (Number(col.sort)) c.sort = Number(c.sort);
+ if (Number(col.sort)) c.sort = Number(col.sort);
return c;
});