telerik grid with multiple column header

7 posts, 0 answers
  1. V
    V avatar
    3 posts
    Member since:
    Jul 2012

    Posted 23 Jul 2012 Link to this post

    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.

  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 26 Jul 2012 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. V
    V avatar
    3 posts
    Member since:
    Jul 2012

    Posted 26 Jul 2012 Link to this post

    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?

  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 26 Jul 2012 Link to this post

    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.
  6. V
    V avatar
    3 posts
    Member since:
    Jul 2012

    Posted 26 Jul 2012 Link to this post

    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.
  7. Gayathri
    Gayathri avatar
    5 posts
    Member since:
    Nov 2012

    Posted 07 Nov 2012 Link to this post

    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);
                })
                        
              )
  8. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 08 Nov 2012 Link to this post

    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
Back to Top
UI for WinForms is Visual Studio 2017 Ready