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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T13:07:59+00:00 2026-06-08T13:07:59+00:00

I am using the plugin JQGrid 3.8.0.1 on a Grails Project having the Grails

  • 0

I am using the plugin JQGrid 3.8.0.1 on a Grails Project having the Grails 2.0.3 version.

I have this <jqgrid:grid> having an attribute onSelectRow. I was planning to convert my redirect structure from the form structure to window structure. The reason for doing this conversion is that not all .gsp files having a JQGrid component have a <form> component in the <body> area.

From this:

<jq:resources/>
<jqui:resources/>
<jqgrid:resources/>
<jqgrid:grid
// other main attributes (i.e., url, colNames, colModel, etc.)
onSelectRow="function(id) {
    document.<formname>.action = 'view/' + id;
    document.<formname>.submit();
}"></jqgrid:grid>

// html body content of form
<form name="<formname>">
</form>

To this:

<jq:resources/>
<jqui:resources/>
<jqgrid:resources/>
<jqgrid:grid
// other main attributes (i.e., url, colNames, colModel, etc.)
onSelectRow ="function(id) {
    window.location.href = ${createLink(action:'show', id:id)};
}"></jqgrid:grid>

The jq, jqui, jqgrid tags are the plugins installed on the project by the grails command grails> install-plugin jquery jquery-ui jqgrid

The problem is the new script won’t work. Upon checking the new html source code returns the value of onSelectRow attribute window.location.href = /<Project Name>/<Controller>/show;. The question is how can I have the JQGrid running properly on the new script.

Note: I am currently using the scaffold functionality of Grails or generate-all * command

  • 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-08T13:08:00+00:00Added an answer on June 8, 2026 at 1:08 pm
    onSelectRow: function(id,status)
    {
         //var rowData = jQuery(this).getRowData(id); 
    }
    

    try to replace '=' with ':' and try.

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

Sidebar

Related Questions

I am using treegrid with jqGrid and am quite new to this plugin. I
I'm using jqGrid for a JIRA plugin and have included the jquery and jqgrid
This is the first time I'm using jqgrid. I have confused in how to
I'm using this plugin to style my selectboxes. I have a PHP script that
I am using the JQGrid plugin on an MVC project. I am trying to
Using jquery's jqGrid plugin, I have it setup to do sorting, paging, and searching.
I am using the most excellent jqGrid plugin, and have found lots of help
I am using jQuery 1.6.1 and want to use JqGrid (a grid table plugin
I am using jqxGrid plugin to display the data in a Grid. I have
I'm using this plugin to upload multiple files with jquery, and this project is

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.