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

  • Home
  • SEARCH
  • 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 4619438
In Process

The Archive Base Latest Questions

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

Using jquery’s jqGrid plugin, I have it setup to do sorting, paging, and searching.

  • 0

Using jquery’s jqGrid plugin, I have it setup to do sorting, paging, and searching. Now what I need to do is add links in each row to redirect to different pages like edit for example based on that row’s id (I don’t want to use the jqGrid edit.) How would I create links within grid cells?

  • 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-22T02:25:28+00:00Added an answer on May 22, 2026 at 2:25 am

    Was able to figure it out, note the gridComplete event:

    jQuery(document).ready(function () {
    
            jQuery("#list").jqGrid({
                url: '/admin/campus/getnearbybusinesses',
                datatype: "json",
                colNames: ['Id', 'Name', 'Location', 'Verification', ''],
                rowNum: 15,
                /*rowList: [20, 40, 60],*/
                pager: '#pager',
                sortname: "Name",
                sortorder: "asc",
                viewrecords: true,
                caption: "Businesses",
                width: 930,
                height: 470,
    
                colModel: [
                    { name: 'Id', hidden: true, sortable: false, search: false, width: 0 },
                    { name: 'Name', index: 'Name', search: true, searchoptions: { sopt: ['cn']} },
                    { name: 'Location', index: 'Location', search: false },
                    { name: 'VerificationCode', index: 'VerificationCode', sortable: false, search: false, width: 40 },
                    { name: 'action', index: 'action', sortable: false, search: false, width: 160 }
                ],
    
                jsonReader: {
                    root: "rows",
                    page: "page",
                    total: "total",
                    records: "records",
                    repeatitems: false,
                    cell: "cell",
                    id: "id",
                    userdata: 'rows'
                },
    
                gridComplete: function () {
                    var grid = jQuery("#list");
                    var ids = grid.jqGrid('getDataIDs');
                    for (var i = 0; i < ids.length; i++) {
                        var rowData = $("#list").getGridParam('userData')[ids[i] - 1];
                        var id = rowData.Id;
                        var viewButton = "<a href='/business/home/" + id + "/index' class='button'>View</a>&nbsp;&nbsp;";
                        var upgradeDowngradeButton = "<a href='/admin/business/" + id + "/index' class='button'>Upgrade/Downgrade</a>&nbsp;&nbsp;";
                        var deleteButton = "<a href='javascript:void(0)' onclick='doDelete(" + id + ")' class='button'>Delete</a>";
                        grid.jqGrid('setRowData', ids[i], { action: viewButton + upgradeDowngradeButton + deleteButton });
                    }
                }
            });
    
            jQuery("#list").jqGrid('navGrid', '#pager', { edit: false, add: false, del: false });
    
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using jQuery UI , I have a tabs plugin and within tab 1 gets
I have been using jquery validate plugin http://bassistance.de/jquery-plugins/jquery-plugin-validation/ . It has been working successfully,
Using jQuery, how would you find elements which have a particular style (eg: float:
Using jquery (javascript) need to display facebook user name in html page using facebook
Using jquery fitted* plugin, if I put a rel =external on the clickable area
Using jQuery, I'm trying to replace all links to images (.jpg, .png, .tiff, .gif)
Without using jQuery (can't get into why NOT right now) how do I disable
Scenario: Using jquery form plugin . The form appears in a dialog, created with
Using jQuery , how can I dynamically set the size attribute of a select
Using jQuery, how do you bind a click event to a table cell (below,

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.