javascript - Angular grid reverse columns -
we using angular-grid
display grid of dynamic columns. ie:
col1 col2 col3 col4 col5 col6 col7 col8 col9 colx
the columns being returned in correct order, however, angular grid displaying them front.
colx col9 col8 col7 col6 col5 col4 col3 col2 col1
is there way reverse these columns. cant use column destinations, have no idea how many columns returned.
you should list them in columndefs
in correct order.
the related documentation: http://angular-ui.github.io/ng-grid/
if don't know columns before getting them, can set property after received data, based on example first row.
Comments
Post a Comment