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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:59:08+00:00 2026-05-22T11:59:08+00:00

A have a razor view with a Telerik MVC grid. The first column has

  • 0

A have a razor view with a Telerik MVC grid. The first column has a link for deleting the record. The link is an Ajax Actionlink.

@(
 Html.Telerik().Grid<QMS.Models.CustomerTableRow>(Model)
        .Name("CustomerTable")
        .Columns(c =>
        {
            c.Template(
                @<text>
                @Ajax.ActionLink("Delete","Delete", new { key = item.CustomerKey },new AjaxOptions{ Confirm="Delete this Customer?",UpdateTargetId = "CustomerTable", HttpMethod = "Delete"})
                </text>
                );
            c.Bound(col => col.FirstName);
            c.Bound(col => col.LastName);
            c.Bound(col => col.Email);
            c.Bound(col => col.HomePhone);
        })
        .Pageable()
        .Sortable()
        .Resizable(res => res.Columns(true))
        .Scrollable()
        )

//Action Method in view
 //[HttpDelete]  <-- can't have this or else a "Resource not found" error occurs
        public ActionResult Delete(String key)
        {
                repo.DeleteCustomer(key);
                return PartialView("CustomerTable", repo.GetCustomerTable());
        }

Some odd things happen when I click on the “Delete” link that I create in the template column. First, the confirmation message does not appear but the delete action is still called. Second, even though I have HttpMethod=”Delete”, If I decorate the action method with [HttpDelete] I get a “resource not found” error. Finally, this grid is in a partial view and the action method returns the partialview after the delete however all formatting is lost, it’s as if the CSS file is no longer there. None of this happens if the link is rendered outside of the grid. I am using version 2011.1.315

  • 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-22T11:59:09+00:00Added an answer on May 22, 2026 at 11:59 am

    Just curious, are you using jQuery 1.6.1 (I believe this is the most recent at this time) or 1.5.1 the version telerik provides?

    For example in my app I’m using
    @Html.Telerik().ScriptRegistrar().jQuery(false)
    to include the scripts Telerik needs but to not include jQuery so that I can include it myself and have control over which version it uses

    Do you get the same behavior regardless of which version you include?

    I’m assuming since it works outside of the grid you have jquery.unobtrusive-ajax.min.js referenced.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem to render column template with Telerik Grid for MVC. I'm
I have a razor view that looks like this @using(Html.BeginForm(MVC.Account.Info())) { <p>blah blah blah</p>
I have a telerik grid in an asp.net mvc3 (RAZOR) View. While designing I
MVC 3 VB.NET applicaiton... Using express checkout with html razor view. I have tried
I have used this custom Helper in My Razor View. @Html.Link(OpenewWindow, Constants.Value, new {
I am working on asp.net MVC 3 application. I have created a Razor view
I have created a Razor view in my asp.net MVC 3 application. It is
I am using ASP.NET MVC 3 with the Razor view engine . I have
I have a Razor view that has something like this in: @foreach (var item
Using the razor view engine, I have some code like the following: @Html.TextAreaFor(model =>

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.