This is a migrated thread and some comments may be shown as answers.
Sorting Listview ?
3 Answers 199 Views
This is a migrated thread and some comments may be shown as answers.
s
Top achievements
Rank 1
s asked on 01 Mar 2012, 01:20 PM
Is it possible to sort a listview?

3 Answers, 1 is accepted

Sort by
0
Clint
Top achievements
Rank 1
answered on 01 Mar 2012, 09:02 PM
You can sort on the datasource itself.  
http://jsfiddle.net/clechner/mXcqX/25/

Or were you thinking on the actual columns?  If you want to sort on the widget itself you could/should you a grid instead.
0
Dobromir
Top achievements
Rank 1
answered on 14 Nov 2014, 11:15 AM
Hi guys!
I have the same question, but the demo that @Clint posted is expired.
Can someone guide me how to make simple sorting with ListView ?
0
Petur Subev
Telerik team
answered on 19 Nov 2014, 08:41 AM
Hello Dobromir,

As Client explained you need to sort the dataSource and the ListView will redraw accordingly. To sort the dataSource you should use the sort method. Check the example in the docs:

http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#methods-sort

Kind Regards,
Petur Subev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Asked by
s
Top achievements
Rank 1
Answers by
Clint
Top achievements
Rank 1
Dobromir
Top achievements
Rank 1
Petur Subev
Telerik team
Share this question
or