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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:54:34+00:00 2026-06-15T19:54:34+00:00

I have a dojo (1.8.1) DataGrid where I cannot retrieve all the selected items

  • 0

I have a dojo (1.8.1) DataGrid where I cannot retrieve all the selected items in the DataGrid (roughly 171 records in the grid). The problem is that some of data returned to selectedItem are null.

Interesting, If i scroll all the way to the bottom of the DataGrid and then run though the code below, I get all the records..This is weird..

var gridy = dijit.byId("grid");
var items = gridy.selection.getSelected();
if (items.length) {
  dojo.forEach(items, function(selectedItem) {
   if (selectedItem !== null) {
     dojo.forEach(gridy.store.getAttributes(selectedItem),
            function(attribute){
              var value = gridy.store.getValues(selectedItem, attribute);
              alert('attribute: ' + attribute + ', value: ' + value);
            });
    } 
  });
}

So, when all items in the grid are selected (171) I only get 50 items showing as selected and the rest are null for selectedItem variable. Strange problem, seem like a bug in DataGrid??

Thx!!

  • 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-15T19:54:35+00:00Added an answer on June 15, 2026 at 7:54 pm

    It could be due to paging (see DataGrid-tutorial at “Paging and Virtual Scrolling”). “only a small subset of the data is ever rendered at one time”. Therefore, a nasty workaround could be to set the rowsPerPage-property of your DataGrid to a high value (like 1000) when instanciating it.. It should be higher then the expected maximum amount of rows to be displayd in the grid at all ever.

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

Sidebar

Related Questions

I have problem in DOJO with DataGrid. I refresh my grid on every 1
I'm using Dojo 1.7 and I have a problem with the dojox/grid/DataGrid and dojox/data/CsvStore
I have a DataGrid that has items in it. When you right-click on one
I have a DataGrid that is loaded from an XML data store, all created
I have a Dojo Grid that I'm filtering with a query that's set in
I have this problem I'm using DataGrid + dojo.store.JsonRest as store. I want to
Some code I am working with replaces some HTML elements that have Dojo event
I have a dojo datagrid with datastore of json type. I have already accomplished
I have a Dojo Datagrid in one of my pages (which contains more content)
I have a Dojo dialog that is opened when a user clicks on an

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.