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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:13:30+00:00 2026-06-04T03:13:30+00:00

jqgrid image column is defined using colmodel below. In form edit mode if mouse

  • 0

jqgrid image column is defined using colmodel below.
In form edit mode if mouse is over image cursor changes to hand but click in image is ignored.

How to show large image in separarate window if clicked in image ?
Large image is retued by url 'http://localhost/Grid/GetImage?id=' + options.rowId (without size parameter).

{"label":"Logo","name":"_image_Logo","edittype":"image",
    "editoptions":{"src":""},
    "editable":true,
    "formatter":function(cell,options,row) {
      return '<img src="http://localhost/Grid/GetImage?size=150&id=' +
               options.rowId +'" />';
} ,
"search":false,"title":false,"width":150},    

{"edittype":"file","label":"","name":"Logo","search":false,
"title":false,"width":150,"hidden":true,
"editrules":{"edithidden":true},"editable":true}

Update

I tried Oleg and Michael suggestions using colmodel below. I need to pass row id to image controller. In grid clicking image works OK, big image is opened. options.rowId returs image id.

In edit form, row id is not passed. How to pass options.rowId instead of e.target.id in click event ?

{"name":"Image",
"edittype":"image",

  "editoptions":{
    "src":"",  
    "dataEvents":[{"type":"click","fn":function(e) {
      window.open('GetImage?id=' + e.target.id, e.target.id )
  }
}]},

  "editable":true,
   "formatter":function(cell,options,row) {
    return '<a href="GetImage?id=' + options.rowId+'"><img src="GetImage?size=54&id=' + 
         options.rowId +'" /></a>';
} 
,"search":false,"title":false,"width":54},
  • 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-04T03:13:31+00:00Added an answer on June 4, 2026 at 3:13 am

    You can use for example onCellSelect or beforeSelectRow to catch click on the image and implement any custom action (like to show large image) which you need.

    If you need to implement some action on click on image only in the editing mode you can use dataEvents property of editoptions.

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

Sidebar

Related Questions

jqGrid Edit form invoked using Edit button from top toolbar is defined as grid.navGrid(#grid_toppager,
jqGrid is defined using code below. editurl is used for inline edit. dataProxy is
We are using jqGrid in local mode and as part of our ajax call
I'm using jqgrid tree grid with the following configuration colModel : [ { name:'id',width
I am using jqgrid and using the inline editing mode and can't figure out
Experts, I have JQGrid with custom template column like Edit. the following screen display
I have the below jqgrid image, from which I would like to remove the
I need a jqGrid like the below image. http://imageshack.us/photo/my-images/851/jqgrid.jpg/ How can I get that
I am using jqGrid ( http://www.trirand.com/blog/ ) to display some read-only data. The resizeable
I am using a jqgrid but am having trouble positioning to a specific page.

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.