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

2 x Grouping Problems

6 Answers 177 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 04 Sep 2007, 02:44 AM
Ok I'm only new too this WinForms Gridview so these are probably some simple problems, But thanks in advance for any help you can give.

1) How do I change the default Text in the Group by Row Header.  By default its coming up with <DataField>: <Value>.
Oh and its centered aligned, but I would prefer it left aligned.

2) when I've configured the Gridview to how I Need it, when I run it and try and use the group by feature by drag and dropping a field to the group by header, the new grouped field isn't showing up, up the top in the group by section, so I can't Ungroup  that field.

If anyone can help with these 2 probably that would be greatly appreciated.
Thank you

6 Answers, 1 is accepted

Sort by
0
Tony
Top achievements
Rank 1
answered on 04 Sep 2007, 04:51 AM
I worked out with problem 2 that it is only occuring when I change the header text of the field.  If I leave the headerText as default it works fine, but I do need to change this. 
So if anyone knows what I'm doing wrong or need to change that would be greatly appreciated, thks.

PS I'm using the latest Demo Version
0
Dwight
Telerik team
answered on 04 Sep 2007, 04:27 PM
Hello Tony,

About your RadGridView problems:
  1. Currently, the group-by header row customization is done through theming. In the upcoming releases we will add support for this to be done in other ways. The text in the group-by header row is currently set through Group-by-expressions. Please, check the RadGridView --> Grouping example in the installed examples for more information.
     
  2. We did have an issue in the SP2 release with the string indexer of the GridViewTemplate.Columns collection, which caused the problem you experience, and a couple of other malfunctions. This is already fixed and the Q2 Beta release will be available tomorrow. Download it and give it a spin.
Best,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Tony
Top achievements
Rank 1
answered on 05 Sep 2007, 01:12 AM

Thank you for your help, I'll look at the demo soon, but with the first problem I've been looking at the example, but still haven't been able to get it working how I wanted.

Using the installed example to illustrate:

I want the header row to display:

Either
"Alfreds Futterkiste" OR
"SHIP: Alfreds Futterkiste"

BUT both of these Commands:
"Group By ShipName" AND
"ShipName SHIP Group By ShipName"

Return: "ShipName: Alfreds Futterkiste"

Could you please give me examples of what would return what I'm after.
Thank you

0
Dwight
Telerik team
answered on 05 Sep 2007, 10:47 AM
Hi Tony,

The same example (RadGridView -> Grouping) demonstrates how to format  the group-by header row. Just check the second textbox (Format string) in the example. For more information about the syntax of the format string, please, refer to https://msdn2.microsoft.com/en-us/library/aa719736(VS.71).aspx

If you have further questions, we will be glad to review them.
 

All the best,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Tony
Top achievements
Rank 1
answered on 07 Sep 2007, 12:37 AM
Hi,

Ok i'm still having some problems with the groupings. (I'm still using Q1 2007 SP2 Demo, Will be downloading q2 2007 Beta demo tonight to test with)
here is a screen shot of where I'm looking:
http://www.byzza.net/telerik%20grouping.png
1) There is no check box "Format String"
2) The Grouping string I'm using is:
ShipName ship, sum(Quantity) sumQ, min(Quantity) minQ, max(Quantity) maxQ Group By ShipName

As can be seen from the screen shot the Alias for ShipName isn't working, as well both Min and Max return 0 which is an error.

Thanks agian for the help your supplying.

Edit: Oh and First and Last both return the Last value
0
Dwight
Telerik team
answered on 07 Sep 2007, 12:45 PM
Hi Tony,

Thank you for the reported issues. Your Telerik points have been updated.

We are extending the group-by expressions syntax but this is still under development. We are shooting for the final Q2 release, due in a couple of weeks.

The "Format String" is currently applied to each field in the group-by expression. In the upcoming Q2 release you'll be able to set different format string for each field in the expression, and the Format String will be used as default for the fields with no formatting set.
 

Kind regards,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Tony
Top achievements
Rank 1
Answers by
Tony
Top achievements
Rank 1
Dwight
Telerik team
Share this question
or