Login Register

model

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.

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

Grid not displaying data

Hi,
I am new to dojo and still learning it. I am facing a problem that I am sending a JSON response from the server and Iam trying to display that response data in the grid. Well I am getting the response back to the client but data is not vivible on the grid and the debug console shows no error. Can any one help mw ASAP as I need this very urgently.

Thanks in advance.

Roles of DojoData model and store, now and in future?

A month ago we were speculating about the roles of the model and the store. The model seems somewhat redundant when used with a store. Since there's no definite answer and improving grid integration with dojo.data was already mentioned in grid priorities I'd like to ask for some clarification of their current/future roles.

Syndicate content