Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6115107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:03:11+00:00 2026-05-23T15:03:11+00:00

I use telerik grid with Ajax batch editing for MVC – works just perfect.

  • 0

I use telerik grid with Ajax batch editing for MVC – works just perfect. I have to do the following – group 2 columns under common, additional to the existing header without losing editing capabilities. So technically I need just a way to put additional header line which sill span across 2 columns. I know that I can use just column template but in this way I get a columns but with read only values – code below. I will appreciate any suggestions.
Thanks,
Andy

<columns.Template(o => {%>

        <table cellspacing="0" class="data-row">
            <tr>
                <td><%=o.Unit_01%></td>
                <td><%=o.Value_01%></td>
            </tr>
        </table>
    <%})
    .ClientTemplate("<table cellspacing='0' calss='data-row' <tr><td><#= Unit_01 #></td><td><#= Value_01 #></td></tr></table>")
    .HeaderTemplate(() => {%>
        <table cellspacing="0" class="data-header">
            <tr>
                <td colspan="2" align="center"><strong>Period 1</strong></td>
            </tr>
            <tr>
                <td>Unit</td>
                <td>Value</td>
            </tr>
        </table>
    <%})
    .Width(200);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:03:11+00:00Added an answer on May 23, 2026 at 3:03 pm

    Never mind, got it from telerik support, code below just for the record, has some limitation but in general works for me quite well.

     columns.Bound(o => o.Unit_01).Width(49).HeaderHtmlAttributes(new { style="padding:0", colspan = 2 }) // make the column span
      .HeaderTemplate(() => {
        %>
        <div style="text-align:center" class="t-header t-last">
            <strong>Period 1</strong>
        </div>
        <div>
            <div class="t-header" style="float:left;width:49px;border-bottom: none">Unit</div> 
            <div class="t-header t-last">Value</div> 
        </div>
        <%
        }
      );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a grid with a column which contains a nullable data Html.Telerik().Grid(Model) .Columns(columns
I currently have a Telerik MVC Grid that is populated with Patients. What I
I use telerik mvc grid and pop up edit template. But I've no idea
I'm using Telerik's Grid control from the MVC Extensions. I have it set up
I have a Html.Telerik().Grid() that is bound to a model in my MVC view.
I have a Telerik MVC Grid where there is a column Names , Gender
I have the following in web layout (master page): @(Html.Telerik().ScriptRegistrar() .DefaultGroup(group => group .DefaultPath(~/Assets/telerikaspnetmvc/2011.2.712/Scripts/)
I use Telerik Extensions for MVC. On one page I use a grid to
I have started to use telerik grids recently (for ASP.NET MVC). The 'Linq-based expression
I need to have a Telerik MVC grid with a combobox (in edit mode)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.