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

Merging all the columns of a table fed radGRid

2 Answers 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sammy78
Top achievements
Rank 2
Sammy78 asked on 21 Oct 2010, 06:27 PM
Hi,
I feed data to my radGrid with a datatable that is generated dynamically. I'm trying to figure out how to merge all the columns (I have 4 if it helps any) if the object received (from the loop) has a specific value in one of it's properties.

I know I'm not too clear here, so here's a little analogy. The object that I use to build the datatable is a list of category of  ingredients (vegetable, meats, etc.). Each row has different stats and whatnot. When I got to, let's say "Dairy", I need to merge all the cells in the row so that I can add a user control in it.

If anyone can help, that would be great.

Thanks
Sam

2 Answers, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 22 Oct 2010, 01:07 PM
Hi Sam,

How to span any given cell over a number of rows/columns, with autogenerated columns in the control is demonstrated in the code library below:
http://www.telerik.com/community/code-library/aspnet-ajax/grid/span-cells-in-grid-over-multiple-positions.aspx

You may also be interested in examining the resources below which explain how to model the look and feel of GridTemplateColumns:
http://www.telerik.com/help/aspnet-ajax/grdcustomizewithgridtemplatecolumn.html

http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/columntypes/defaultcs.aspx (See the last column in the grid)

I hope this gets you started properly.

Kind regards,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Sammy78
Top achievements
Rank 2
answered on 01 Nov 2010, 05:54 PM
It worked great! I was able to create a solution based on the example.

Thank you very much!
Sam
Tags
Grid
Asked by
Sammy78
Top achievements
Rank 2
Answers by
Pavlina
Telerik team
Sammy78
Top achievements
Rank 2
Share this question
or