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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:31:32+00:00 2026-05-23T07:31:32+00:00

I changed ItemFileReadStore for combobox in Dojo. My code looks something like <span dojoType=dojo.data.ItemFileReadStore

  • 0

I changed ItemFileReadStore for combobox in Dojo.
My code looks something like

    <span dojoType="dojo.data.ItemFileReadStore"
                jsId="comboStore"
                data="transformData">
            <select dojoType="mywidget.DropDown" id="transformCombo" value="" store="comboStore" searchAttr="name" name="state" maxHeight="100"/>

My widget is similar to dojo combobox widget. I changed transformData but the combobox is not updated until the page is entirely reloaded again. Any idea?

  • 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-23T07:31:33+00:00Added an answer on May 23, 2026 at 7:31 am

    If the content is changing server side and you just want to refresh your local copy of it without reloading the page, you can call fetch on the store and update your component when you receive the new data.

    Here’s the code that I use to refresh a dojox.grid.DataGrid when the server side content is updated:

    // initialise store and link to DataGrid
    var store = new dojo.data.ItemFileReadStore({
        url: "items.json",
        clearOnClose: true,
        urlPreventCache: true
    });
    var grid = dijit.byId("grid")
    grid.setStore(store);
    
    // code to update local copy
    store.close();
    store.fetch({
        onComplete: function(items, request) {
            grid._refresh();
        }
    });
    

    If you are modifying the data client side, you should probably be using ItemFileWriteStore as Andrei suggested.

    Edit:
    grid.sort() can be used for refreshing a DataGrid as an alternative to grid._refresh() (who’s behaviour may change over time)

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

Sidebar

Related Questions

EDIT: Changed as I have a different issue with the same code 2nd Edit:
I changed the background color that is visible when hovering code (to black). For
I changed some code on an android application that was working perfectly fine at
I changed the background color of the EditText to transperant. Now the EditText looks
I changed the zxing code a little bit so in CaptureActivity.java, Bitmap barcode can
I changed permalink option for my wordpress pages to custom, like this /%postname%/. Now
What changed from mvc1 and mvc2? I have the following code that redirects to
I changed the navbar background color using the following code navconFvc.navigationBar.tintColor = [UIColor colorWithHexString:@faf6f5];
EDIT: changed the title to fit the code below. I'm trying to retrieve a
I changed the folder that my WordPress installation was in. However, this worked fine,

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.