Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Proxicode 119 posts 305 karma points
    Oct 26, 2014 @ 23:41
    Proxicode
    0

    Sort Order on ListView

    Hi Everyone,

    I would like to change the default sort order of the ListView grid to use "SortOrder" instead of "UpdateDate". In the ListViewController I found what I think is the responsible code - it was set to use UpdateDate DESC and I have changed it to SortOrder ASC - however I see no change in the rendered grid. I did clear cache and stop/start the site just to be sure, but no difference.

    so in Umbraco.Controllers.js at line 4545 I changed

    orderBy: 'UpdateDate',
    orderDirection: "desc"
    

    was changed to

    orderBy: 'SortOrder',
    orderDirection: "asc"
    

    Did I change the correct code? Any ideas or pointers would be appreciated.

    Thanks -Roger

  • Marcel van Helmont 68 posts 259 karma points c-trib
    Oct 27, 2014 @ 09:23
    Marcel van Helmont
    100

    Hi Roger,

    Empty the ClientDependency folder on your umbrage installation or place your site in debug mode.

  • Proxicode 119 posts 305 karma points
    Oct 27, 2014 @ 15:15
    Proxicode
    0

    Yep - that did it. Thanks!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies