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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T15:01:57+00:00 2026-05-19T15:01:57+00:00

I currently have a dojo checkbox group (dijit.form.CheckBox with names in the form some_name[])

  • 0

I currently have a dojo checkbox group (dijit.form.CheckBox with names in the form “some_name[]”) It works exactly as desired however I need to add a select all button/link, preferably not another checkbox (this shouldn’t be necessary given the functionality will be implemented in js).

Is the a “dojo” way to do this as using standard js seems to get the elements fine but setting element.checked=true has no effect. For the purposes of testing, I’ve disabled the dijit.form.CheckBox (so I have regular bog standard checkboxes) and I am able to mark all the boxes checked with the code that is failing when dojo’ified.

I’m running dojo 1.5 if that makes any difference

UPDATE:

OK, it seems to be setting the checkbox to be checked/unchecked but not re-rendering the dojo widget. I’m also being told that the checkboxes don’t have any of the method I would expect them to have as dijit.form.CheckBox objects (like the set() method).

  • 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-19T15:01:57+00:00Added an answer on May 19, 2026 at 3:01 pm

    So I found out what the problem was. I was doing dojo.query() to get the checkbox group dom nodes. This however doesn’t return the dijit widget. To get those I had to do:

    nodes = dojo.query('[name=\"checkbox_group[]\"]'); 
    dojo.forEach(nodes,function(node)   
      {dijit.getEnclosingWidget(node).set("checked",true);});
    

    By manipulating the widget it visually updates correctly. Also, I wasn’t aware that the checkbox input element isn’t the widget itself so dijit.byNode(node) returns undefined because the checkbox node doesn’t match any of the initialised dijit widgets.

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

Sidebar

Related Questions

I am currently practicing using Javascript/Dojo. However, I have an error that I am
Currently have password protection on my main and sub directories, however I'd like to
I currently have a form with inputs and name attributes. I'm able to get
I'd like to change the data in my dojo.data.ItemFileWriteStore. Currently I have... var rawdataCacheItems
I have am currently using Dojo EnhancedGrid with Pagination, filtering and cell edition. The
I have recently starting using the dojo library, and I am currently having some
Currently have a form with a ListView. Users of role A get an image
In a custom dijit, I have a button with the data-dojo-attach-event hooked up to
I have a Dojo DataGrid with several fields. I'm currently setting the query to
I have been using tinyMCE over dojo dijit.editor because tinyMCE wins out on functionality.

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.