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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:11:13+00:00 2026-05-28T15:11:13+00:00

I am trying to connect a dojo 1.7 objectStore or itemFileWriteStore to a grid

  • 0

I am trying to connect a dojo 1.7 objectStore or itemFileWriteStore to a grid but I;m not sure what I’m doing wrong.

When I run my code below using the ItemFileWriteStore, I get the grid headers but I dont see my data. When I use ObjectStore, the grid isnt there.

What am I doing wrong?

UPDATE: just noticed that the store.data attribute is empty. Must mean the format of of my “dataBucket” could be wrong?

require(['dojo/on'
            ,'dojo/ready'
            ,'dojo/dom'
            ,"dojo/data/ObjectStore"
            ,"dojo/store/Memory"
            ,"dojox/grid/DataGrid"
            ,"dojo/data/ItemFileWriteStore"
            ],
            function (on,ready,dom,objStore,memStore,grid,itemStore){
                ready(function(){
                    var dataBucket = {//idProperty: 'ID',  //for object store?
                                      identifer: 'ID', //for itemStore
                                      items : [
                                          {ID : '100', col2 : 'Ciao Ciao'},
                                          {ID : '200', col2 : 'Hello'}
                                      ]};

                    var stuff = new itemStore({data : dataBucket});
                    //var stuff = new objStore({store : dataBucket});
                    //var stuff = new memStore({data : dataBucket});

                    var layout = [[
                            {'name':'ID','field' : 'ID','width' : '100px'},
                            {'name':'Stuff','field' : 'col2','width' : '100px'}
                        ]];
                    var myGrid = new grid({
                                id: 'grid',
                                store: stuff,
                                structure: layout,
                                rowSelector: '20px'},
                            document.createElement('div')
                    );

                    dojo.byId("bottomPane").appendChild(myGrid.domNode);

                    myGrid.startup();                        })
                })
            }
        )
  • 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-28T15:11:14+00:00Added an answer on May 28, 2026 at 3:11 pm

    turns out the store hadnt been populated with data correctly. It constructed a store without indicating the data passed in was in the incorrect format

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

Sidebar

Related Questions

I'm trying to connect to a FTP using Apaches FTPSClient but I keep getting
im trying to connect mysql in android app. Below is my code. Once i
I'm new to Java. I'm trying connect to a database but I am not
Im trying to connect a Information object to many Customers (see code below) When
Im trying to connect to www.google.com using socket but the result is: HTTP/1.0 302
I am trying to connect to Postgre using a PHP script, but it returns
Im trying to connect my project via sFTP. and everytime I run the project
I am trying to connect to a MySQL Server using JDBC tool in java
I'm using HostMonster as my web host and I'm trying connect to a database
When trying to connect to a .mdf databse in ASP.NET (using c#) I am

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.