How would you modify the knockout.js simpleGrid plug-in to support column sorting?
I have got the following code: http://jsfiddle.net/NaveenVelaga/QSRBR/9/
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I have had a fiddle with the supplied code.
I have modified the simpleGrid code to expect a sorting function in the column data.
This way we can wire up the template to sort on click via the supplied function.
http://jsfiddle.net/QSRBR/39/
This is a simple solution which needs to be expanded to include bi directional sorting logic
(second click sorts in reverse direction)