angularjs - What is the simplest way to turn off three-state column sorting? -


what simplest way turn off three-state column sorting angular ui grid? third 'unknown' state confusing.

ui-grid sortings example: http://ui-grid.info/docs/#/tutorial/102_sorting default has 3 sorting states. need have 1 column in default sorting state (asc or desc). on click event ui-grid should result asc or desc state, not third 1 "undefined".

this ui grid v3.1.0

grid ui v3.1.0 can set sortdirectioncycle each column separately:

$scope.gridoptions.columndefs: [{       sortdirectioncycle: [uigridconstants.asc, uigridconstants.desc]    },    { sortdirectioncycle: [uigridconstants.asc, uigridconstants.desc] },     { sortdirectioncycle: [uigridconstants.asc, uigridconstants.desc] },    //... each ]; 

Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -