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 7981063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:15:37+00:00 2026-06-04T10:15:37+00:00

I have a problem with rendering a mvc telerik template grid control. Every thing

  • 0

I have a problem with rendering a mvc telerik template grid control. Every thing seems fine but I have this error:

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1002: ; expected

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1002: ; expected

Source Error:

Line 14:
Line 15:
Line 16:
}).Width(100); Line 17: columns.Bound(p
=> p.ProductName).Title(“Product”); Line 18: columns.Bound(p => p.WholesalePrice).Title(“Price”);

here is my source code:

@(
        Html.Telerik().Grid(Model)
        .Name("grid")
        .DataKeys(key => key.Add(p => p.ID))
        .Columns(columns =>
                     {
                         columns.Template(p =>
                                              {
                                                  @<div> 
                                                       <img alt="@p.ProductName"src="@p.ImageURL" />
                                                   </div>
                                              }).Width(100);
                         columns.Bound(p => p.ProductName).Title("Product");
                         columns.Bound(p => p.WholesalePrice).Title("Price");
                     })
        .Pageable()
        .Groupable()
        .Sortable()
)

without defining the column template everything seems to work fine.

  • 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-06-04T10:15:38+00:00Added an answer on June 4, 2026 at 10:15 am

    Try:

    @(
        Html.Telerik().Grid(Model).Name("grid")
            .Columns( columns =>
                          {
                              columns.Template(
                                  @<text> bla bla </text>
                              );
                              columns.Bound(p => p.ProductName).Title("Product");
                          }).Pageable().Sortable()
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read a ton about this problem, but I cannot figure it out.
I have a problem with rendering my html page by the same browsers in
Ok so I have a problem with rails and rendering partials. I have a
Ok, here's a problem I'm having. I have Lua bindings to a rendering engine
I have a tricky problem and I'm not sure where in the view rendering
I have set up jqGrid with JSON in my .Net MVC project. The grid
I am having a problem rendering my view in the layout page using mvc
I have a basic directory app that works fine except that it seems to
I am faced with a problem with ASP.NET MVC 3 with the Razor rendering
i have a problem with rendering image on RDL file in reporting services (SQL

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.