Login Register

store

How can I pass an already loaded store to dataGrid without reloading store?

Hi,

I am using a dataGrid with a JsonRestStore, and the grid Layout is created dynamically based on the data from the store as the number of fields may vary.
In order to do this, I do a store.fetchItemByIdentity( etc etc) and pass the fetched Item to my createDynamicLayout(item) function, which analyses the item to determine how many fields it has.
Then I execute the dataGrid definition with the dynamically created Layout. So far so good.

However, the store is loaded twice. Once when I first fetch an item to analyse the data and once upon declaration of the grid.

Change Store FilteringSelect Dynamic...work only in FF...and not in IE..why?

I use my programmatic Code for change dinamically the store of my filteringselect widget.
I use this code for change
-------------------------------
mesestore= new dojo.data.ItemFileReadStore({url: "loadingstore.php&par=a"});
dijit.byId("mese").store = mesestore;
------------------------------------

Now all work in Firefox and after that I click on widget *mese* I see the new value returned from ajaxcall.

If I click on widget *mese* show with IE ...an error script is show.

Someone can help me?

Dinamic add store to filteringselect...problem

Hi to all,
Hi have a page whit a simple filteringselect control:

<select dojoType="dijit.form.FilteringSelect" name="ruc"  autocomplete="true" id="ruc" onchange="filtra('ruc',this.value)">
            <option value="1">uno</option>
            <option value="2">duw</option>
</select>

How to enable TextBox Dijit to save Login Data? (i.e Firefox Password-Store)

hi,

I searched in google and in whole dojo site but found any answer

How can I get Form Dijits (TextBox and Form) to login data like normal html input fields?

I'm using those dijits for a really long time but I've never seen this behaviour :(

thx and greetings,
Melchior

Recommended technique for adding custom error handle to grid and/or store

We are using Grids and Stores to make server side request and display there results. The grids and stores work well for us when there are no errors on the server, but we need to correctly handle errors from the server when they occur. Currently the grids display either “an error occurred” or “no data found” when we have problems on the server.

What is the recommended technique for adding custom “error handlers” to dojo grids and/or stores so that we can display appropriate messages to the user?

best way to change grid model on the fly

Hello all, i am changing the model of a grid using the setModel method of the grid and then calling the refresh method to update data.

stop filtering select widget with store from making a request on page load

Hello,
I've searched for a while and couldn't find something that discuss this issue. If so I'm sorry for this unnecessary thread.

When adding a filteringselect widget programmatically with an existing datastore, it starts a query to the store and creates a ajax request to the server even though there is no value set. Is there a possibilty to change the onload behaviour of this widget?

The problem is that I have a form with lots of filteringselects connected to the same datastore, and the pageloading time is correspondingly very long, when it always starts a request.

Using JsonRPC with a store?

Hello,

I'm trying to create a store using JsonRPC to be used with a Grid.
Anyone tried this? Could it be a simple copy/paste of the JsonRestStore and simply use dojox.rpc.JsonRPC?

Thanks

Grid event onSet don't want be fired :/

Hi !

I've spend about 3hr to found out why the onSet event is never fired, I, desperatly, I ask for your help :)

So, here is my code :

function createGrid (oResponse, ioArgs) {
var grid = dijit.byId("grid");
var store = new dojo.data.ItemFileReadStore({data: oResponse });
var gridModel = new dojox.grid.data.DojoData(null, store, {query:{destination: '*'}, clientSort:true});
grid.setModel(gridModel);
grid.refresh();

dojo.connect(grid.model, 'onSet', onSetEvent);
//dojo.connect(grid, 'onSet', onSetEvent);
}

Syndicate content