Sorting Listview ?

4 posts, 0 answers
  1. s
    s avatar
    1 posts
    Member since:
    Oct 2011

    Posted 01 Mar 2012 Link to this post

    Is it possible to sort a listview?
  2. Clint
    Clint avatar
    56 posts
    Member since:
    Feb 2011

    Posted 01 Mar 2012 Link to this post

    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.
  3. Kendo UI is VS 2017 Ready
  4. Dobromir
    Dobromir avatar
    1 posts
    Member since:
    Jul 2013

    Posted 14 Nov 2014 Link to this post

    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 ?
  5. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 19 Nov 2014 Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready