Answered by:
sorting the list category in service request

Question
-
Hi
is there any way to sort the list of the category in alphabetical order???
Thanks
Ahmed Ali
Tuesday, September 27, 2016 6:11 AM
Answers
-
Hi,
Please refer to the thread below:
Quote:
Add following line at start of Views\Home\ServiceRequestDetails.cshtml file -
@{
...
List<Dictionary<string, object>> requestOfferings = ViewBag.RequestOfferingsDetails;
requestOfferings = requestOfferings.OrderBy(x => x["Title"]).ThenByDescending(x => x["Title"]).ToList();
string placeholderbase64string = ....
}Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.- Proposed as answer by Stoyan ChalakovMVP Wednesday, September 28, 2016 10:45 AM
- Marked as answer by Xin GuoMicrosoft contingent staff Monday, October 10, 2016 3:13 AM
Wednesday, September 28, 2016 9:08 AM
All replies
-
Hi,
Please refer to the thread below:
Quote:
Add following line at start of Views\Home\ServiceRequestDetails.cshtml file -
@{
...
List<Dictionary<string, object>> requestOfferings = ViewBag.RequestOfferingsDetails;
requestOfferings = requestOfferings.OrderBy(x => x["Title"]).ThenByDescending(x => x["Title"]).ToList();
string placeholderbase64string = ....
}Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.- Proposed as answer by Stoyan ChalakovMVP Wednesday, September 28, 2016 10:45 AM
- Marked as answer by Xin GuoMicrosoft contingent staff Monday, October 10, 2016 3:13 AM
Wednesday, September 28, 2016 9:08 AM -
Thanks Xin Guo for your reply but can you tell me which file exactly should apply these changes???
Ahmed Ali
Sunday, October 2, 2016 6:12 AM -
Add the line at start of Views\Home\ServiceRequestDetails.cshtml file.
Please refer to the link below:
Service Manager – New HTML5 Portal – Basic Customizations 3/5 – Colors and Tiles
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.
- Edited by Xin GuoMicrosoft contingent staff Monday, October 3, 2016 2:53 AM
Monday, October 3, 2016 2:51 AM