I am trying to pre-group my Gridview on the start of the page (page load)
so i saw a very interesting documentation you have called "programmatic grouping", which has the following block of code i would need to use inside my XAML
My question is: where exactly is this GroupDescriptor? It doesn't seem to recognize the tag at all. Can you provide me a sample or something that uses it? I couldn't find one in your demos tool.
5 Answers, 1 is accepted
looking forward to hear from you
I'm attaching a sample project with the two approaches described in the article.
1) The code-behind approach can be placed in the constructor of your Window and be used similarly to:
2) The same can be achieved using the following XAML code:
I hope you find this helpful.
This works! But I could swear the telerik:RadGridView.GroupDescriptors tag was not being recognizing before.
anyhow, thank you very much. issue solved!
For now I just need to change the header of my group on fly
I see it comes after the field's name and as you can see in the attached picture, the header is not very user friendly
How can I change it in the codebehind or viewmodel?
Here is the code I use to create the groupdescriptor
You can achieve this by setting the DisplayContent property of the GroupDescriptor as demonstrated in our Programmatic Grouping article:
Please let me know if this works for you.