Login Register

data

How do I tell the grid to reload the data if the db has changed?

I've got a grid, with a dojo.data.ItemFileWriteStore, which is coming from a db via php. Another process is making changes to the database and I want to refresh the content of the grid without reloading the whole page. It sure seems like grid._refresh() or grid.update() or grid.store.SOMETHING() should do it, but I can't make it work.

Any hints?

How to feed the datastore with data and refresh it by url

Hi,

I have got a data store defined with a "data" property instead of "url" because the data is already known when the HTML page is sent by the server, and I can thus avoid an XHR request to the server afer the page is loaded.

var data = { /* Object initially populated by my PHP script */ };
var store = new dojo.data.ItemFileWriteStore({ data: data });

DOJOX grid

[editor: moving to the appropriate forum…]

dojox.grid.data isnot an object or null.
I have hard coded the data in the data=[];
model=dojox.grid.data.table(data,null);
But the data is not displayed in the grid.

please help regarding this. I'm new to dojo.

how does dijit load binary image data on the fly?

Hi,

dojox.rpc.Service Behaviour Change (Possible Bug)

 Hello,
I have be experimenting with dojox.rpc.Service for use with with dojox.data.serviceStores.
However the behaviour of dojox.rpc.Service has changed.

For my example, let:
var rpc = new dojox.rpc.Service("Path/To/SMD");
var store = new dojox.data.ServiceStore({service:rpc.restService, idAttribute:'id'});

where "path/To/SMD" contains a method "restService" which accepts a single integer id attribute. With a URL envelope and REST transport IE:
parameters: [

{

name: 'id',
optional: false,
type: 'integer'

}

FisheyeLite Animation doesn't work after changing data

I am workin on a project for the university with fisheyeLite. I make an sortArray to sort an array alphabetically with onclick "abc". It works and sort the array but after that the animation from fisheye doesn't work matter. Can anybody help me? An also problem is that the animation doesnt work on MS Internet Explorer 8. Thanks a lot for your answers.

Code:

{
jdata:"",
templateString: "

" +
"
abc

"+

Grid stops displaying the data when column is clicked.

I am currently trying to get data to show up within the grid. This part is successful but when I click on any of the column headers all the data disappears. Any ideas would be helpful.

I have found some more information that might help. In Firefox 3 the data is being shown until you click on the column to sort in IE the data never shows up at all.

ServiceStore Client Side Caching

I'm playing around with the ServiceStores that will be officially introduced in Dojo 1.2.
On one of my pages I have multiple service stores - however, the current implementation uses a common _index for a client side cache. As a result, I have some of my values being overwritten as I am using auto-increment database ids.

Performing an action when a data store finishes loading

I'm trying to catch an event when my datastore finishes loading the data originally, but I can't seem to get it.
I need to modify some data (client side) before a grid uses the data.
I've tried connecting to the onLoad, onNew and constructor events with no success.

Here's my last attempt:

pdojo.addOnLoad(function(){
pdojo.connect( questionStore, "onNew", "test123");
});

function test123( )
{

Syndicate content