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

A title Header before a Header in RadGrid

5 Answers 653 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dip
Top achievements
Rank 1
Dip asked on 07 Jul 2008, 02:11 PM
Hello,

I have just started with telerik controls. I have a requirement where I use RadGrid.
Now the problem in that the client wants to add a Title Header before Header.
Eg:
            Name                                     Contact
FirstName      LastName            Phone         Email
John               Bush                     7111          John@
Harry              Wilson                  8765         Harry@

Can anyone help me with "How to put Name and Contact title over the Header?"
I have tried a way. <RadGrid ....>
                              <MasterView ... Caption='<Table><tr><td>Name</td></tr><td>Contact</td></Table>.
                              </MasterView>
                               </RadGrid>

But it is not good idea at the moment...

Any help is appreciated

Thanks,
DIP

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 07 Jul 2008, 02:15 PM
Hi Dip,

You can use CommandItemTemplate to define your content and set MasterTableView CommandItemDisplay = "Top".

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Dip
Top achievements
Rank 1
answered on 07 Jul 2008, 02:37 PM
Hi Vlad,

Well the idea was not any better then Adding a table in Caption property.
The problem with the Caption or CommandItemTemplate is that is gets displaced when I use resize my column in RadGrid...

Thanks,
DIP
0
Vlad
Telerik team
answered on 07 Jul 2008, 03:20 PM
Hi Dip,

You can use template columns similar to this example:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/GeneralFeatures/ColumnTypes/DefaultCS.aspx

All the best,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Dip
Top achievements
Rank 1
answered on 08 Jul 2008, 06:18 PM
Hi Vlad,

I was going for your suggestion, then suddenly I realise that If I do this then I have to build a separate grid for every report.
eg:

Report 1        Name         Contact
              First       Last    Emal     Tel
             ***         ***    ***      ***

Report 2     Places                        Place Contact
              Home    Work          Cell     Argent      Phone
             ****         ***          ***        ***          ***
Now there are about 200 Reports, but displays only one choice made on the dropdown and other control....Even If I have 200 grids ..I don't know what exactly column is coming (dataset). Any better way on doing it beside custom radGrid?

If the I have to implement Custom Radgrid what is the properties to override it?(I doubt  i can, but still)
 
thanks,
DIP
0
Sebastian
Telerik team
answered on 14 Jul 2008, 10:53 AM
Hello Dip,

For more flexible layout of your entire grid instance, consider taking advantage of the global item template feature introduced with the Q1 2008 release of the product. More information/code snippets with sample implementation you can find in these resources:

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/GeneralFeatures/CardView/DefaultCS.aspx
http://www.telerik.com/help/aspnet-ajax/grdcardview.html

Feel free to modify/customize the presented functionality in order to attain the precise presentation you are searching for.

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Dip
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Dip
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or