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

telerik grid with multiple column header

6 Answers 260 Views
GridView
This is a migrated thread and some comments may be shown as answers.
V
Top achievements
Rank 1
V asked on 23 Jul 2012, 01:15 PM
telerik grid with multiple column header

my code:

@{

 

 

var headerHtmlAttributes = new { style = "font-weight:bold" };

 

Html.Telerik().Grid<

 

WorkflowDashboardModel>()

 

.HtmlAttributes(

 

new { style = "text-align:center" })

 

.Name(

 

"WorkFlowDashBoardExp")

 

.Columns(columns =>

{

columns.Bound(d => d.SourceSystem)

.HeaderHtmlAttributes(headerHtmlAttributes);

columns.Bound(d => d.NewException)

.HeaderHtmlAttributes(headerHtmlAttributes);

 

}

i want to give a header column for the column headers as top one.

how can i do? please help.

6 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 26 Jul 2012, 10:18 AM
Hi,

I reviewed the provided code but was not able to understand what is the exact functionality you need to achieve based on your explanation. Could you please elaborate a bit more on your requirements. Sending us a related screenshot will help us propose more to-the-point solution for your specific case.

Kind regards,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
V
Top achievements
Rank 1
answered on 26 Jul 2012, 11:36 AM
very simple.  when we are using a telerik grid, how can i set one main column header which is common for two sub column header?

0
Maria Ilieva
Telerik team
answered on 26 Jul 2012, 01:34 PM
Hello,

Please review the online demo below which elaborates on this matter:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/multicolumnheaders/defaultcs.aspx

All the best,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
V
Top achievements
Rank 1
answered on 26 Jul 2012, 01:43 PM
Hi,

Thanks for your reply and I already saw that link.

That page tells how to create a grid in normal telerik grid tool.
But my problem is, the Grid should be displayed in razor view.

Please help on this.
0
Gayathri
Top achievements
Rank 1
answered on 08 Nov 2012, 05:55 AM
Hi,

how do i set the static values display in telerik MVC grid.

The purpose is to display data and show a demo about telerik MVC grid. 
My code is this and i want to set the value for the cell 
There are about 15 rows to be displayed in the grid. should i use a for loop or how can i specify cell[0],cell[1]
  @(Html.Telerik().Grid(Model)
            .Name("csGrid")            
            .Columns(col =>
            {
                 col.Bound(o => o.Sno).Title("S.No.").Width(200).Filterable(true).Sortable(true); 
                 col.Bound(o => o.Enrollno).Title("Enroll No.").Width(200).Filterable(true).Sortable(true);
                 col.Bound(o => o.CandidateName).Title("Candidate Name").Width(200).Filterable(true).Sortable(true);
                 col.Bound(o => o.BatchNo).Title("Batch No.").Width(200).Filterable(true).Sortable(true);
                 col.Bound(o => o.CourseDetails).Title("Course Details").Width(200).Filterable(true).Sortable(true);
                 col.Bound(o => o.Mobile).Title("Mobile").Width(200).Filterable(true).Sortable(true);
                 col.Bound(o => o.Other).Title("Other").Width(200).Filterable(true).Sortable(true);
            })
                    
          )
0
Emanuel Varga
Top achievements
Rank 1
answered on 08 Nov 2012, 07:02 AM
Hello,

Is this a winforms or a web question?

If it is for winforms please take a look at the demos application under GridView->Columns->Grid Views.
If it's not related to winforms please open a thread under the right forum to get an answer quicker and also to avoid confusion.

Thank you,

Best Regards,
Emanuel Varga
Winforms MVP
Tags
GridView
Asked by
V
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
V
Top achievements
Rank 1
Gayathri
Top achievements
Rank 1
Emanuel Varga
Top achievements
Rank 1
Share this question
or