More in this section

Forums / Bugs & Issues / documents not sorting

documents not sorting

12 posts, 0 answered
  1. Eric
    Eric avatar
    8 posts
    Registered:
    04 Feb 2011
    15 Apr 2011
    Link to this post
    I might be missing something here, so I will either need clarification, or this is a bug. In the documents and files admin, I go to a specific library, and sort the documents by name. I then go to the pages admin and add a document list widget to a page. I edit that list, choosing the library that I just sorted and sorting it by the order in the library. In the settings for that document list, it is set to be a list that is paginated per 15 documents. I publish the page, and the sorting isn't changed on the front-end when I hard refresh the page. Instead, it is still ordered by the order that I have uploaded them.
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    30 Oct 2017
    18 Apr 2011
    Link to this post
    Hello Eric,

    I hope this behavior is not causing serious problems. We are aware of this issue and have fixed it. The fix will be included with our Sitefinity 4.1 release.

    Best wishes,
    Boyan Barnev
    the Telerik team

  3. Eric
    Eric avatar
    8 posts
    Registered:
    04 Feb 2011
    19 Apr 2011
    Link to this post
    When will the 4.1 release be ready? I believe we have an upgrade to 4.1 available since we just purchased this installation a week or two ago.
  4. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    30 Oct 2017
    19 Apr 2011
    Link to this post
    Hello Eric,

    Sitefinity 4.1 has been officially released yesterday afternoon (GMT +2), and is available for download on your Sitefinity account. Please always create a backup version of your projects before upgrading, and you might also want to take a look at this blog post.

    Best wishes,
    Boyan Barnev
    the Telerik team

  5. Eric
    Eric avatar
    8 posts
    Registered:
    04 Feb 2011
    19 Apr 2011
    Link to this post
    Is there any way that I can get a patch or something to fix this issue, as this client is remaining on 4.0 SP1?
  6. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    30 Oct 2017
    25 Apr 2011
    Link to this post
    Hello Eric,

    Please accept my sincere apology for misleading you. It appears that the issue is still present in Sitefinity 4.1 release and I have logged it with high priority for fixing. It is also available in PITS on this public URL where you can track its progress. I have updated your Telerik Points accordingly.
    Can you please inform me about the specific functionality you want to achieve, so that maybe I can try and come up with a workaround while we are working on fixing this bug?

    Regards,
    Boyan Barnev
    the Telerik team

  7. Jules
    Jules avatar
    65 posts
    Registered:
    20 Jul 2005
    02 Sep 2011
    Link to this post
    Eric may not need a workaround, but I do. I am simply trying to sort the Download List by the document title.

    I see where the "Sort documents and files" drop-down on the Download List simple properties window includes an "As set in Advanced mode", but I none of the properties in advanced mode jump out at me as being the "sort" property.

    Please help!
  8. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    30 Oct 2017
    03 Sep 2011
    Link to this post
    Hi Julia Essex,

    In the subsequent releases (Sitefinity 4.1 and on) we have introduced a setting that allows you to specify custom sorting expression in the Advanced settings of the Download List widget. Please take a look at the attached screenshots.

    Kind regards,
    Boyan Barnev
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  9. Mark
    Mark avatar
    22 posts
    Registered:
    16 Sep 2012
    21 Oct 2011
    Link to this post
    Telerik,

    Any chance of adding custom sort expressions to all content types?  Specifically, I'm looking to sort blogs and news by a custom date field.  We're back-porting some old news and blogs and would like to sort them by the original date, not the new publication date.  We're on Sitefinity 4.2.1650.0.

    Thank you.

    Mark
  10. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    30 Oct 2017
    24 Oct 2011
    Link to this post


    Hello Mark,

    Can you please specify whether you want this sorting by custom field applied - on the frontend content view widgets or in the backend grid  with items? This can be easily achieved, as sorting should be supported by your custom fields as well. Please take a look at the attached short video demonstrating modifying the SortExpression to achieve sorting by custom field. If you have any additional questions, please let us know.

    Best wishes,
    Boyan Barnev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  11. Mark
    Mark avatar
    22 posts
    Registered:
    16 Sep 2012
    31 Oct 2011
    Link to this post
    Telerik,

    What I am trying to implement is a front end method that will allow users to sort content items, in this case a "review" that will have a 1 to 5 stars rating.  Reviews will either be a blog or news item.  The goal is that the person viewing the page will be able to sort items by rating; either ascending or descending. Ideally, they would also be able to filter (i.e. see only 5 star reviews).  Do you have any guidance on how to implement this functionality?  If not, is this feature on your roadmap for a future release?

    Thank you.

    Mark
  12. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    30 Oct 2017
    31 Oct 2011
    Link to this post
    Hi Mark,

    Thank you for the clarification. Sorting by any field, be it one that's default for the provider, or a custom field is no problem - we offer this functionality out of the box, like I demonstrated in the video from my previous response. However, there is no rating system implemented out of the box. The rating can be done with a control like RadRating.

    You have to implement custom control that will have a client part and ListView (or another control) with Documents or other, that will wrap rad rating control in the Item Template.

    The average rating result need to be calculated at wrapper rating control like:

    var averageRating = ratedItem.VotesSum / (ratedItem.VotesCount != 0 ? ratedItem.VotesCount : 1);
    //load the value
    this.RatingControl.Value = (double)averageRating;

    On the client  you need to implement a method that will invoke service to update VotesCount and VotesSum into the database (these could be custom fields of the Documents). I hope this information helps you achieve the desired functionality. If there's anything else you'd like to know, or some additional questions that you might have, please let me know.



    Greetings,
    Boyan Barnev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
12 posts, 0 answered