Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sortInfo, what is the correct syntax, working example needed #244

Open
JByfordRew opened this issue May 8, 2013 · 2 comments · May be fixed by #304
Open

sortInfo, what is the correct syntax, working example needed #244

JByfordRew opened this issue May 8, 2013 · 2 comments · May be fixed by #304

Comments

@JByfordRew
Copy link

Various threads show these different syntaxes

  • sortInfo: { field:'myField', direction:'asc'}
  • sortInfo: { column:''myColumn', direction:'asc'}
  • sortInfo: { column: {field:'myField}, direction:'asc'}
  • sortInfo: ko.observable( ...... )

Questions

  • Is the field/column value the column def field value or display name?
  • is the descending value 'desc' or other?

I've tried various combinations and none default the sorted column. maybe a simple jsfiddle example

@raymonds1987
Copy link

I'm trying to set a default sort order for a specific column. I too haven't been able to get sortInfo to work properly.

@bhushanvinay
Copy link

If sort is not working properly, then are you using breeze? i had some small experiece with ko. when it looks for item type to sort .item() or .item.peek() gives the right datatype for it to sort correctly. this is my experience with kogrid.js file. if it works with out a change please help me also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants