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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:09:34+00:00 2026-05-22T16:09:34+00:00

How do I pass values from url to Jqgrid, the issue is the Jqgrid

  • 0

How do I pass values from url to Jqgrid, the issue is the Jqgrid needs to be loaded based on edit link on previous page, and we have the URL like:

    http://localhost:49771/Search/EditSearchResults?id=ID_HelpTopics&action=edit

I need to be able to use this id in URL for populating the grid data, so I need to pass this value through grid to controller to get the results and the grid I have is like:

            $("#list").jqGrid({
            url: '<%= Url.Action("EditSearchResults", new {controller = "JSonData" }) %>', 
            datatype: 'json',
            colNames: ['Language', 'ID'],
            colModel: [
                { name: 'Language', index: 'Language', editable: false, width: 40, align: 'left', sortable: false },
               { name: 'ID', index: 'ID', width: 40, editable: true, edittype: "text", align: 'left', editoptions: { size: 5, maxlength: 30 }, sortable: false }, ],

            editurl: '<%= Url.Action("EditSearchResults", new {controller = "JSONData"}) %>',
            pager: '#pager',
            //autowidth: true,
            width: "500",
            autowidth: true,
            rowNum: 20,
            height: "200",
            loadonce: false,
            rowList: [5, 10, 20, 50],
            recordtext: "View Records {0} - {1} of {2}",
            emptyrecords: "No records to view",
            loadtext: "Loading...",
            pgtext: "Page {0} of {1}",
            sortname: 'Results',
            sortorder: "desc",
            viewrecords: true,
            scroll: false,
            loadonce: false,
            caption: 'Edit Search Results',
            ondblClickRow: function (id) {
                if (id != null) {
                        jQuery('#grid').jqGrid('restoreRow', lastsel);
                        jQuery('#list').jqGrid('saveRow', id);
                        jQuery('#list').jqGrid('editRow', id, true, false, processEdit);
                        lastsel = id;
                }

            }
        });
        });

How can use the current URL to pass id to controller to populate jqgrid, How should the controller and jqgrid should be like? Any ideas?

  • 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-22T16:09:35+00:00Added an answer on May 22, 2026 at 4:09 pm

    Url.Action will take a anonymous object as a parameter set

    url: '<%= Url.Action("EditSearchResults", 
                         new {controller = "JSonData" },
                         new {id = Request.Params[id] }) %>',
    

    However it would be preferable to make that part of your model than depending on the Request.

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

Sidebar

Related Questions

I am using Querystring to pass values from one page to other. I am
I have an issue where I read the value from textbox and pass its
I want to pass two inputs' values into url to make it like http://www.testing.com?item=product+amount=100
I want to pass some values from my Game extends Activity to Screen extends
I want to pass the values from MapOverlay class to another class. I tried
Anyone have idea how to pass value from iPhone application to the REST-Webservice using
How do I pass a value from one screen to its previous screen? Consider
I have been looking long for a solution how to pass the value from
I have a UISplitViewController in which i'm attempting to pass an int value from
I have the following problem in C#, when I pass values with the querystring

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.