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

RadGrid and Multi Column Headers

4 Answers 316 Views
Grid
This is a migrated thread and some comments may be shown as answers.
cs
Top achievements
Rank 1
cs asked on 04 Oct 2011, 09:23 PM
I've already looked at:
http://www.telerik.com/help/aspnet-ajax/grid-appearance-customize-gridtemplatecolumn.html

Which used a template for the header and data sections.  To my eyes its a really crude solution, and doesn't look very good.

Is there a better way to do this that reflects a polished product?

Thanks

4 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 05 Oct 2011, 12:40 PM
Hello,

Sorry but as per my experience with radgrid there is not any other way.
you can also see demo in here

Thanks,
Jayesh Goyani
0
cs
Top achievements
Rank 1
answered on 05 Oct 2011, 01:34 PM
Thanks for the link, but that does not show what I'm calling a multi row header.  That just shows wrapping the headers.

I didn't think there was another way, but would like an example that shows aligning columns where there are more than just 2 columns, something like 10-15 columns.  The problem I"m having is getting the headers to align with the column below, as well as using a template table for the main data and getting them to align properly.
0
Emre
Top achievements
Rank 1
answered on 10 Mar 2014, 02:32 PM
Hi. 
Please help me.
I m trying to make multi header column in radgrid.

I have read links:
"http://www.telerik.com/help/aspnet-ajax/grid-multicolumn-headers.html" and
"http://demos.telerik.com/aspnet-ajax/grid/examples/columns-rows/columns/multi-column-headers/defaultcs.aspx"

Basically: describe "ColumnGroups" and relate "columns" with them. it looks very easy but not.
Because i use "simple data binding method" (http://www.telerik.com/help/aspnet-ajax/grid-simple-data-binding.html),
so i have no columns.
Radgrid show data very well, but its "columns.count" property is 0.

What sould i do?
0
Shinu
Top achievements
Rank 2
answered on 11 Mar 2014, 05:14 AM
Hi Emre,

It is advisable to that RadGrid must be bound using declarative data sources or through the NeedDataSource event. When using declarative data sources or the NeedDataSource event, RadGrid can automatically accommodate the appropriate database operations without the need for you explicitly handle any sorting, paging, grouping, and so on. Please try any of this methods and see if it helps, else provide your code snippet.

Thanks,
Shinu
Tags
Grid
Asked by
cs
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
cs
Top achievements
Rank 1
Emre
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or