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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:27:48+00:00 2026-06-04T01:27:48+00:00

Here is my grid which is in MyPartialView: @(Html.Telerik().Grid<MyClass>() .Name(GridMyClass) .ToolBar(commands => commands.Insert().ButtonType(GridButtonType.BareImage)) .DataKeys(keys

  • 0

Here is my grid which is in MyPartialView:

@(Html.Telerik().Grid<MyClass>()
        .Name("GridMyClass")
        .ToolBar(commands => commands.Insert().ButtonType(GridButtonType.BareImage))
            .DataKeys(keys => keys.Add(a => a.Id))
                    .ClientEvents(events => events.OnError("Grid_onError"))
        .Columns(columns =>
        {
            columns.Bound(p => p.Name).Width(110);
            columns.Bound(p => p.Timestamp).Width(110).Format("{0:MM/dd/yyyy}");
            columns.Command(commands =>
            {
                commands.Edit().ButtonType(GridButtonType.BareImage);
                commands.Delete().ButtonType(GridButtonType.BareImage);
            }).Width(180).Title("Edit");
        })
        .DataBinding(dataBinding =>
        {
            dataBinding.Ajax()
            .Select("Ge", "MyClass")
            .Update("Edit", "MyClass")
            .Delete("Delete", "MyClass")
            .Insert("Insert", "MyClass");
        })
    .Pageable()
    .Sortable()
    //.Scrollable()
    //.Groupable()
    //.Filterable()
    //.Editable(editing => editing.Mode(GridEditMode.InLine))

)

Here is one of the controller methods (the others are similar):

public ActionResult Delete()
    {
        //delete

        //get the model

        List<MyClassTemplate> ct = new List<MyClassTemplate>();
        //fill ct
        return PartialView("MyPartialView", new GridModel<MyClassTemplate> { Data = ct });
    }

And another controller method:

public ActionResult MyPartialView()
    {
        List<MyClassTemplate> ct = new List<MyClassTemplate>();
        //fill ct 
        return PartialView(ct);//new GridModel(ct)
    }

When I edit a row in the grid and click on the image to save the edited row, I step with breakpoints throught the controller methods. Everything is fine. ct has ok value. However, I get alert “Error! The requested URL did not return Json.”. Which url did not return json? How to resolve this?

  • 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-04T01:27:50+00:00Added an answer on June 4, 2026 at 1:27 am

    The error was pretty self-explanatory. Instead of a partial view, I should have returned json.

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

Sidebar

Related Questions

Here's a much-abbreviated sample of my code. <Grid> <Polygon Name=ply Grid.Column=2 Grid.Row=0 Grid.RowSpan=3 Fill=Orange
I have a view with telerik grid. Ihave a controler code which I am
I have a query through which I populate grid. Here is the query, var
Here is my code that adds a line to the grid by pressing the
How i can create ExtJs grid panel with checkboxes like here .
How do you make a grid width 100% inside a canvas? Here's some simple
I'm trying to build a simple grid of div s: ( live demo here
Is there a way to center text in the cell here? grid.Column(TotalSum, Total Sum,
I'm trying to find a grid which is especially designed to show images. It
Hi I have a grid view which is dynamically generated via C# using a

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.