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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:28:31+00:00 2026-05-25T19:28:31+00:00

I have implemented a simple jqGrid in my ASP.NET MVC 3 application. It shows

  • 0

I have implemented a simple jqGrid in my ASP.NET MVC 3 application. It shows the data correctly, so that’s fine. But now I want my application to show the details of a row if I doubleclick on a row.
I have a Detail action method that actually gets called with the correct ID, the details are retrieved from database and the Details view is returned, so that seems to be OK, but in my application nothing happens.

I have the following script for the grid:

jQuery(document).ready(function ()
{
    jQuery("#list").jqGrid({
        url: '/Incident/ListData/',
        datatype: 'json',
        mtype: 'GET',
        colNames: ['TicketNumber', 'Title', 'CreatedOn'],
        colModel: [
      { name: 'TicketNumber', index: 'TicketNumber', width: 75, align: 'left' },
      { name: 'Title', index: 'Title', width: 250, align: 'left' },
        { name: 'CreatedOn', index: 'CreatedOn', width: 90, align: 'left'}],
        pager: jQuery('#pager'),
        rowNum: 10,
        rowList: [10, 50, 100],
        sortname: 'CreatedOn',
        sortorder: "desc",
        viewrecords: true,
        width: 650,
        imgpath: '/Content/themes/base/images',
        caption: 'Incidents',
        ondblClickRow: function (id) { $.get('/Incident/Detail/' + id); }
    });
}); 

I’ve tried using $.ajax instead of $.get, but in both cases the details method gets called and nothing happens.

This is the Details action method

 public ViewResult Detail(Guid id)
    {
        var query = from inc in _repository.Incidents
                    where inc.Id == id
                    select
                        new IncidentModel(inc)
                            {
                                CreatedOn = inc.CreatedOn,
                                Description = inc.Description,
                                ModifiedOn = inc.ModifiedOn,                                    
                                TicketNumber = inc.TicketNumber,
                                Title = inc.Title,
                                Status = inc.Status
                            };
        var incident = query.FirstOrDefault();

        return View(incident);
    }
  • 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-25T19:28:32+00:00Added an answer on May 25, 2026 at 7:28 pm

    $.get sends an AJAX request and gives you the server’s reply.
    It doesn’t actually do anything with the server’s reply; it’s up to you to do something useful.

    It sounds like you don’t want AJAX at all; instead, you want to navigate to that page:

    location = '/Incident/Detail/' + id
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have worked with JQgrid in asp.net mvc, but now i am trying to
I have implemented a simple Android application that I now would like to test
I have a partial view (UserControl) that implements a simple pager in my Asp.Net
I have implemented simple com.sun.net.httpserver.HttpServer application using one of examples in the internet. Server
I have implemented a simple linux shell in c. Now, I am adding some
In our desktop application, we have implemented a simple search engine using an inverted
Very simple Qt GUI application: On the scene I have multiple circles implemented as
I have implemented a simple linked list class and I would now like to
I have implemented a simple appmod that handle WebSockets and echo back the messages.
I have implemented a simple search function that highlights a row in a DataGrid

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.