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

  • Home
  • SEARCH
  • 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 7010401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:59:10+00:00 2026-05-27T21:59:10+00:00

I have a problem to render column template with Telerik Grid for MVC. I’m

  • 0

I have a problem to render column template with Telerik Grid for MVC. I’m currently using the last version : 2011.3.1115.340 with ASP.NET MVC 3 (Razor view engine)

This the code of my view page :

@{
    Html.Telerik().Grid<CustomerModel>()
        .Name("CustomersGrid")
        .DataKeys(keys =>
                      {
                          keys.Add(c => c.Id);
                      })
        .ToolBar(commands => commands.Insert().ButtonType(GridButtonType.Text).ImageHtmlAttributes(new {style = "margin-left:0"}))
        .DataBinding(dataBinding =>
                         {
                             dataBinding.Ajax()
                                 .Select("_SelectBinding", "Customers")
                                 .Insert("_InsertBinding", "Customers")
                                 .Update("_SaveBinding", "Customers")
                                 .Delete("_DeleteBinding", "Customers");
                         })
        .Columns(columns =>
                     {
                         columns.Bound(c => c.Id).Width(20).ReadOnly(true);
                         columns.Bound(c => c.Email);
                         columns.Bound(c => c.Lastname);
                         columns.Bound(c => c.Firstname);
                         columns.Bound(c => c.MobilePhone);
                         columns.Bound(c => c.EnterpriseName);
                         columns.Bound(c => c.ManagementComments);
                         columns.Bound(c => c.IsActivated);
                         columns.Template(
                             @<text>
                                  <div>@item.Id</div>
                              </text>
                             ).Title("Premium");
                     })
        .Editable(editing => editing.Mode(GridEditMode.InLine))
        .Pageable()
        .Sortable()
        .ClientEvents(events => events.OnComplete("Grid_onComplete")).Render();
}

I have the template column “premium” in my grid but it’s still empty :

http://www.imagup.com/data/1140161102.html

I also test without the Render(), same result :

@(Html.Telerik().Grid<CustomerModel>()
        ... blabla ...
                         columns.Template(
                             @<text>
                                  <div>@item.Id</div>
                              </text>
                             ).Title("Premium");
                     })
        .Editable(editing => editing.Mode(GridEditMode.InLine))
        .Pageable()
        .Sortable()
        .ClientEvents(events => events.OnComplete("Grid_onComplete"))
)

Thanks for your help !

  • 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-27T21:59:10+00:00Added an answer on May 27, 2026 at 9:59 pm

    Your grid is ajax bound which means that server-side templates are not applied. Use the ClientTemplate instead:

    columns.Template(@<text>
       <div>@item.Id</div>
    </text>)
    .ClientTemplate("<div><#= Id #></div>")
    .Title("Premium");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with the Telerik grid that I can't seem to find
I am using Adventureworks2008R2 Database and trying to render the following. I have problem
I have a problem here. My Zend_Forms do not render in view script. Via
I have problem when I try insert some data to Informix TEXT column via
I have problem creating new instance of excel 2007 using VBA (from Access 2002).
I have a border that contains a TabControl in a HeaderedContentControl: <Border Grid.Column=1 Style={StaticResource
I have a relatively complex layout. It consists of: A grid with one column
MVC3 and using the Telerik Grid. I'm using Phil Haacks Hidden Indexer Input For
I have problem in some JavaScript that I am writing where the Switch statement
I have problem with return statment >.< I want to store all magazine names

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.