This is a migrated thread and some comments may be shown as answers.

[Solved] Best way to programmatically change filter/sort

2 Answers 133 Views
JumpList
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Erik
Top achievements
Rank 2
Erik asked on 07 Jul 2011, 08:44 PM
I have a jump list where I've set the filter and sort via the XAML. What's the best solution for moving these settings in to the code where I can have UI events set them. An example is having a list of items with names, dates and locations. I want to be able to change this sorting on the fly and have the RadJumpList display it in real time.

2 Answers, 1 is accepted

Sort by
0
Accepted
Deyan
Telerik team
answered on 11 Jul 2011, 08:16 AM
Hi Erik,

Thanks for contacting us and for your questions.

Please, take a look at the help contents available online regarding RadJumpList. You will find useful examples there which demonstrate how you could programmatically modify the GroupDescriptors and SortDescriptors collections to dynamically group and sort the data items in RadJumpList:

http://www.telerik.com/help/windows-phone/radjumplist-features-group-descriptors.html

I hope this helps.

All the best,
Deyan
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Erik
Top achievements
Rank 2
answered on 12 Jul 2011, 08:44 AM
Thanks, this works perfect. I kept it simple and used a basic property.

                var groupByEvent = new PropertyGroupDescriptor { PropertyName = "EventDate" };
                MainCalendar.GroupDescriptors.Add(groupByEvent);
                var sortByTitle = new PropertySortDescriptor { PropertyName = "Artists" };
                MainCalendar.SortDescriptors.Add(sortByTitle);
Super easy!
Tags
JumpList
Asked by
Erik
Top achievements
Rank 2
Answers by
Deyan
Telerik team
Erik
Top achievements
Rank 2
Share this question
or