ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Remove sorting column unknown.

Open roedit opened this issue 12 years ago • 4 comments

http://plnkr.co/edit/fS7yGE59coBnm98rlv63?p=preview I wanna remove sorting on a column, but i can't identify the column. if( sortColumns.length === 0 ){ console.log('default') } sortColumns.length is 0 each time when i wanna remove the sorting. Ascending and descending is working fine.

roedit avatar Nov 25 '14 14:11 roedit

I'm not sure that the plunker shows what you are trying to say - I can't see any issues with it - it logs out the sort direction whenever the sort changes. Is there something missing?

PaulL1 avatar Dec 07 '14 19:12 PaulL1

There is no way to target the column on witch i'm removing the sorting. I have to remove the sort on all columns. And if i have implemented a sorting order, there is no way of removing the sorting on only one column because i don't know the column that has lunched the event. Please let me know if i can help with other info ..

roedit avatar Dec 08 '14 07:12 roedit

Are you wanting to remove a column from the current sort state after it's been sorted?

If not, can you please be specific about the end result you're wanting?

c0bra avatar Dec 15 '14 15:12 c0bra

I understood wrong the way that it's working the sorting implemented. I thought that the external sorting event it should return the column that has lunch the sorting event. But is returning all the columns and the sort priority and it's working fine. Please ignore all this and close the bug.

roedit avatar Dec 15 '14 15:12 roedit