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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:57:12+00:00 2026-06-18T00:57:12+00:00

I have a table that has the following data in a grid: ID Course

  • 0

I have a table that has the following data in a grid:

ID   Course
2    Math
5    English
7    Science
9    History
12   Gym

What I like is for the value of ID and Course to be hyperlinks so they are clickable. When the user clicks on a given ID, I like to have an alert for that shows the given ID. When the user clicks on the Course, I like to have an alert
that shows both the ID and Course.

I am not sure how to do this. I understand there is a
showlink

but not sure how to tie it everything together.

Looking at a stackoverflow question, I can do the following:

    var grid = jQuery('#list');
    var sel_id = grid.jqGrid('getGridParam', 'selrow');
    var myCellData = grid.jqGrid('getCell', sel_id, 'MyColName');

where MyColName would be the name of the column but not sure how to tie it altogether.

  • 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-18T00:57:13+00:00Added an answer on June 18, 2026 at 12:57 am

    You can solve the problem in many ways. The formatter "showlink" is oriented to create the standard HTML link <a> instead of usage JavaScript click event handler. You can do use formatter "showlink" (see my very old answer) to call your custom JavaScript code, but there are better ways for implementation. For example you can use custom formatter or to use formatter: "dynamicLink" which you can find here and which I described here.

    The best and the most easy way which I would suggest you now is the usage of pseudo links. See the answer or another one for details.

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

Sidebar

Related Questions

I have a mongo table that has statistical data like the following.... course_id status
I want to have a database table that keeps data with revision history (like
I have a table that has the following data (shortened for this example): C1
I have a table that has the following format for the data. All I
I have a data table that has the following columns: id (string), date (date),
I have a sqlite table that has amount field with NUMERIC(10,5) value(I know data
I have a table that has the following schema: DATA | CAUSE_1 | TIME_1
i have a table that has following column Type -------- type 1 type 2
I have a table that has multiple rows with the following fields: PersonName SongName
I have a MSSQL table stores that has the following columns in a table:

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.