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

GroupByExpressions

4 Answers 104 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Daron
Top achievements
Rank 1
Daron asked on 31 Jan 2008, 10:03 AM
Hello all,
I have a field I need to group by in the RadGrid ("TypeId"), but I wish to display a different field as the "group name". This field is "Type Name" (note the space).

Is this possible? ie, groupBy = TypeId, display = Type Name

If I can't display a different column heading to the group-by field that's fine, the main thing is I need to be able to group by a field that contains a [space]. I'm dealing with legacy, deployed code, so I can't go changing the stored procs!

Any help appreciated.

Cheers,
DT

4 Answers, 1 is accepted

Sort by
0
Daron
Top achievements
Rank 1
answered on 31 Jan 2008, 10:22 AM
As a work-around I have "cleaned-up" my datatable. ie, I loop through the column names and remove any spaces.

In true OO I wouldn't have this problem anyway, since I'd be binding to an object and not a DataTable directly, but this is RAD and there's not the time for creating objects for every single sproc!

Hope this helps anyone else with a similar problem.

DT
0
Missing User
answered on 04 Feb 2008, 10:44 AM
Hi Daron,

We are glad that you were able to solve the problem yourself and apologize that we could not help you right away.
Don't hesitate to contact us if you have other questions.


Sincerely yours,
Plamen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Aaron Abdis
Top achievements
Rank 1
answered on 06 Jun 2008, 07:49 PM
here is a tip for anyone else trying to make grid groupbyexpressions which have spaces in the name...

I had tried using %20 (which just shows up as the literal "%20")
I had tried using &space; (which excepted on "invalid characters")

Finally, i figured out how to get actual spaces in the name of a group by expression...
go into charmap, and select out U+00A0, "No-Break Space", copy it and past it in the name of your group by expression in place of the standard space.

Works like a charm for both IE7 and FF3rc1!
0
Levi
Top achievements
Rank 1
answered on 06 Nov 2008, 06:02 PM
You can use   as well.
Tags
Grid
Asked by
Daron
Top achievements
Rank 1
Answers by
Daron
Top achievements
Rank 1
Missing User
Aaron Abdis
Top achievements
Rank 1
Levi
Top achievements
Rank 1
Share this question
or