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

Group Column Caption

11 Answers 234 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Domenico
Top achievements
Rank 1
Domenico asked on 20 Mar 2008, 01:50 PM
Hello, how can I change the column caption when I use a column for grouping data? I don't want to see the field name like NameField:Data, but just the data.

Thanks.

11 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 21 Mar 2008, 12:58 PM
Hi Domenico,

Thnak you for this question.

You can spcify group header formatting through code when adding an expression to the GroupByExpressions collection of the MasterGridViewTemplate. Consider the code snippet below:

this.radGridView1.MasterGridViewTemplate.GroupByExpressions.Add("Value format '{1}' GroupBy Value");  
this.radGridView1.UpdateGroupPanel();  
 

In the sample above the {0} parameter of the formatting is the name of the column that is grouped. The {1} parameter is the value.

I hope this helps.
Do not hesitate to write me, if you have other questions.

Best wishes,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Domenico
Top achievements
Rank 1
answered on 28 Mar 2008, 11:10 AM
What event I've to manage to execute this code?
0
Jack
Telerik team
answered on 28 Mar 2008, 12:12 PM
Hi Domenico,

This code should be executed when you are grouping the RadGridView programmatically. Currently, there is no suitable event to process when the user groups through the user interface. We will add such functionality in some of our future releases.

Let me know, if I can help you further.

All the best,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Domenico
Top achievements
Rank 1
answered on 28 Mar 2008, 01:40 PM
I want the user decide the column grouping, but I don't want to see the field name inside cell. What can I do?
0
Jack
Telerik team
answered on 28 Mar 2008, 05:40 PM
Hi Domenico,

Currently, you can customize the group header text only when the grouping is set through code. You can't hide the field name when the user performs a grouping operation using the user interface.

If you have other questions, don't hesitate to contact me.

Greetings,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Levi
Top achievements
Rank 1
answered on 07 Nov 2008, 02:18 PM
Is there a better way to do this with the latest Telerik releases? I ask because the post is pretty old. I'm trying to do the same thing and making event handlers for every grid is a bit messy.
0
Nick
Telerik team
answered on 10 Nov 2008, 03:56 PM
Hello Levi,

Currently, you can customize the group header text only when the grouping is set through code. You can't hide the field name when the user performs a grouping operation using the user interface. Do not hesitate to write me back if you have further questions.
 

All the best,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Boris
Top achievements
Rank 1
answered on 13 Nov 2008, 01:59 PM
Hi Teleriks :)

Well I think we all know now, that this feature will be availabe in a future release...

...any idea how long this will take?

thx
Bo
0
Nick
Telerik team
answered on 14 Nov 2008, 11:05 AM
Well, unfortunately, we do not have a set deadline. We will be discussing the Q1 release soon and we will do our best to include this feature in it.


Sincerely yours,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Daniel
Top achievements
Rank 1
answered on 21 Dec 2009, 03:37 PM
Hi Teleriks,

is this feature now availabe?
0
Nick
Telerik team
answered on 22 Dec 2009, 09:21 AM
Hi Daniel,

Thank you for contacting us. Please follow the instructions in this blog post.

Do not hesitate to write me back if you have further questions.

All the best,
Nick
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Domenico
Top achievements
Rank 1
Answers by
Jack
Telerik team
Domenico
Top achievements
Rank 1
Levi
Top achievements
Rank 1
Nick
Telerik team
Boris
Top achievements
Rank 1
Daniel
Top achievements
Rank 1
Share this question
or