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

Why are group descriptors, sort descriptors and filter descriptors are collections?

5 Answers 98 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.
Paulo Morgado
Top achievements
Rank 1
Paulo Morgado asked on 24 Jun 2012, 02:04 AM

I’ve been reading the documentation for RadJumpList and I can’t understand why group descriptors, sort descriptors and filter descriptors are collections.

 

All examples show collections with a single element. It would be nice to provide an example on how a collection with more than one element would be used.

5 Answers, 1 is accepted

Sort by
0
Vijay
Top achievements
Rank 1
answered on 24 Jun 2012, 10:10 AM
Hello Paulo

Collection are used here as set of objects that you can access by stepping through each element in turn. In RadJumpList the elements are arranged as in collective manner such that it can be filtered, sorted, grouped, define some headers or many more. Please Look into the below links which is explained much clearly.

Click here for Group Descriptors

Click here for Sort Descriptors

Click here for Filter Descriptors 

Thanks and Regards,
Vijay
MVC Corp.
0
Paulo Morgado
Top achievements
Rank 1
answered on 24 Jun 2012, 04:29 PM

Hi Vijav,

The links that you provided (which I had read before) don not explain nor they exemplify why they are collections.

Let’s take the GroupDescritors (the others are pretty much the same).

The value of the GroupDescriptorsSource property (and the corresponding attached property GroupDescriptorsSourceProperty) is an enumerable of DataDescriptor instances and the value of the GroupDescriptors property is an observable collection of DataDescriptor instances.

But the code sample only shows its usage with a collection of only one descriptor.

So, my doubts remain:

  1. Why is it a collection of descriptors instead of a single descriptor?
  2. How would I use a collection with more than one descriptor?
0
Deyan
Telerik team
answered on 25 Jun 2012, 11:26 AM
Hello Paulo,

The answer to your question is quite simple:

Imagine that you want to group the items in a given data group. So in this case you will have to insert one group descriptor to create the initial groups, and after that another group descriptor to create the sub-groups within each initial group. A simple real-life example would be a list of products that can be ordered in groups of categories and sub-categories after that.

The same is with filtering and sorting.

I hope this answers your question.

Let me know if I can assist you further.

Greetings,
Deyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Paulo Morgado
Top achievements
Rank 1
answered on 25 Jun 2012, 11:32 PM
Thanks, Deyan. Now it all makes sense.

Wouldn't it be nice to show a usage of this on the documentation or a blog post? I think it would.
0
Deyan
Telerik team
answered on 26 Jun 2012, 07:08 AM
Hi Paulo,

Thanks for getting back to me.

We will consider your suggestion.

Do not hesitate to get back to us anytime you have further questions or need assistance.

All the best,
Deyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
JumpList
Asked by
Paulo Morgado
Top achievements
Rank 1
Answers by
Vijay
Top achievements
Rank 1
Paulo Morgado
Top achievements
Rank 1
Deyan
Telerik team
Share this question
or