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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:39:51+00:00 2026-05-15T05:39:51+00:00

Is there a way in jqgrid to have an editable column that uses a

  • 0

Is there a way in jqgrid to have an editable column that uses a select like in this colModel example:

{ 
name: 'Options', 
index: 'Options', 
width: 150, 
align: 'left', 
resizable: false,
editable: true, 
edittype: 'select', 
editoptions: { 
    value: function() { return buildSelect(); } 
},
formatter: 'select'
}

but always shows the select?

I’ve got this working before with checkboxes, but there doesn’t seem to be a way of doing it with selects. Ideally I’d like this to work in celledit mode. 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-15T05:39:51+00:00Added an answer on May 15, 2026 at 5:39 am

    All is possible. I am not sure, that what you want is the best way. In the most cases I recommend to use some standard way, then your live will be easier especially after change to a new version of the control which you use.

    Nevertheless you can use custom formatter (see http://www.trirand.com/jqgridwiki/doku.php?id=wiki:custom_formatter) instead of formatter: 'select' to show the contain of a column how you as prefer. For example,

    { name: 'Options', width: 150, align: 'left', editable: true, edittype: 'select',
      editoptions: { 
        value: function() { return buildSelect(); } 
      },
      formatter: function (cellvalue, options, rowObject, action) {
        if (cellvalue === 'Yes') {
          return '<select><option value="1" selected="selected">Yes</option>' +
                         '<option value="0">No</option></select>';
        } else {
          return '<select><option value="1">Yes</option>' +
                        '<option value="0" selected="selected">No</option></select>';
        }
      }
    }
    

    can be used to display select with ‘Yes’ and ‘No’ values instead of default one current value (‘Yes’ or ‘No’). You can also bind some function for a change handle of such select elements.

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

Sidebar

Related Questions

Is there any way to hide a column in a jqGrid table, but have
is there way how to get name ov event from Lambda expression like with
I have grid with several editable cols colModel: [ { name: 'id', width: 1,
I have a WebMethod that looks like this which is used to populate a
Is there any way to disable jqgrid local cache??? I have a page which
I have a jqgrid that contains some data, the first column of which is
I have been following this example, http://www.ok-soft-gmbh.com/jqGrid/DependendSelects2.htm , as it is just what I
Is there way to set @include mixin(); to variable? I tried this @mixin bg-gradient($fallback,
Is there way that I can read the file from remote server using fopen
I wonder if there way to customize td inner HTML of grid, for example

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.