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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:27:02+00:00 2026-06-07T03:27:02+00:00

I was looking at the SlickGrid ‘s editors / formatters features to see how

  • 0

I was looking at the SlickGrid‘seditors/formatters features to see how these would modify the data object used to build the grid (because as far as I understand, modifications made to the table are automatically replicated to the data object).

I was looking at a particular example which shows how booleans can be edited and formatted as checkboxes (instead of dealing with a true or false string) and noticed that the values replicated to the data object were inconsistent.

To see what I mean, edit the effortDriven column for the first 4 rows as follows:
–Task 0: don’t touch
–Task 1: check
–Task 2: don’t touch
–Task 3: check and uncheck

enter image description here

Now in your firebug console, alert the data object:

enter image description here

Here are the values you will get for the effortDriven field:
–Task 0: true
–Task 1: checked
–Task 2: false
–Task 3: (void 0)

As you can see, for a field that’s initially supposed to be a boolean, we end up with 4 different values. As a general comment, I thought the logic with formatters/editors was only to check the visualization, but preserve integrity of the data object: I would therefore strongly recommend people using SlickGrid to double-check how their data object is being updated when using formatters/editors, and don’t assume data integrity is preserved).

How can I make sure my data object retains 2 boolean values while still using a checkbox on the UI?

  • 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-07T03:27:04+00:00Added an answer on June 7, 2026 at 3:27 am

    Edit the CheckboxEditor function in slick.editors.js as follows:

    this.applyValue = function (item, state) {
      //item[args.column.field] = state;  <-- remove that line, add lines below
      if (state == 'checked') {
          item[args.column.field] = true;
      } else {
          item[args.column.field] = false;  
      }
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

HI, I'm looking at SlickGrid and I can see example on how to edit
Looking to move data from a table A to history table B every X
Looking at adding some data graphing to a new iPhone app in development (ala
Looking around at different code bases I see a variety of styles: Class interfaces
Looking for opinions on if OpenCV could be or has been used to detect
Looking at the list of annotations in FindBugs 2.0 , I see that a
Looking at the following code, does theme[sprite].img get nested inside result[definition].data (as theme[sprite].img is
Looking for MS DOS batch file script to restart Internet explorer. Would highly appreciate
I'm looking for a simple example on how to use SlickGrid when trying to
Looking for an structure of how to build a group inside pool of a

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.