Login Register

store

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?

Seeking advice on lazy load pattern for custom data store

Hi all,

I've rolled by own custom data store based on the following demo:

http://archive.dojotoolkit.org/dojo-2008-02-19/dojotoolkit/dojox/data/de...

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);
}

construct tree from database information dynamically

Hi master,

I have a problem to retrieve information from database to construct a tree. Below is my code which point to physical file to construct a tree and it works fine. I have construct a json format with javascirpt and it works when i pasted the information into the file that i harded.[URL parameter was hard coded to that particular json file]. How can i constructe a tree dynamically with database information.

javascript
var jsonForm = "{identifier: 'packageID',label: 'packageName',items:"+getJsonAcc1+"}";

JSP

what is wrong here?.

Hi All,
Can anyone help me in recognising the problem with this code?..

I have copied the code from "dojox\data\demos\demo_QueryReadStore_grid.html". I made very little modification i.e I removed one grid as I needed only one grid. Now my problem is sorting is not happening for any of the categories and I am not able to understand how and where to make a call to the server for paginitaion functionality. Server will just send me an collection..

Thanks in advance.

How to programmatically create a filteringSelect and its associated data store

The two functions below are two different attempts to programmatically create a filteringSelect and its associated data store. I believe I am not properly creating the data store. The first method...


function createPicklist(elemId, fldLabel, fldCount) {
showMsg("creating picklist for:\nnelemId:" + elemId + "\nlabel:" + fldLabel + "\ni:" + i);
// This function creates a filteringSelect element for the specified field from the database

// get the body element
var doc = document;
var htmlElement = doc.documentElement;

Adding items to programatically created tree

Hi all,

I have an xml dom from which i create an ItemFileWriteStore datastore, which I use as the Store for my Tree, which i also programatically create like so

var tree = new dijit.Tree({
                                        persist:false,
                                        store: store,
                                        id: "myTree"
                                }, this.dojo.byId("myDivInsideMyContentPane");

inside a ContentPane. So far so good, the Tree displays all the Items as Nodes correctly.

Now I add an Item to the root of my Store like so

Syndicate content