dojox

Preventing Dojo data.store race condition.

I'm using dojo.data.ItemFileReadStore to get data from a json source into a dojox.grid.DataGrid. I replace the datastore with DataGrid.setStore(), which works fine, except when I try dto do it before the old datastore has finished loading, which instead causes the DataGrid to crash and being unable to recover. How can I prevent this race...

No data showing in dojox.grid.DataGrid

I am using dojo 1.3 and having problems getting this dojox.grid.DataGrid working. I am sure it is my ignorance. I have been reading over the Dojo Campus examples and beleive I have right. My html looks like: <script type="text/javascript"> dojo.require("dojox.grid.DataGrid"); dojo.require("dojo.data.ItemFileWriteStore"); </script> ...

dijit.layout.TabContainer nested tabs auto load

Hello, I'm fairly new to Dojo toolkit, and well really like it. But I have a problem with nested tabs auto-refreshing. Here is a sample of my practice code where this problem exists. I'm currently concerned with this as it introduces a huge performance problem when the sub-tabs are plentiful; ex: my subtabs are the letters A-Z for in...

adding button to dojo datagrid

I am trying to add a delete button to the Dojo Datagrid and I currently have the following javascript: function createGrid() { gridTmp = new dojox.grid.DataGrid({ store: jsonStore, structure: [ {name: "Report No", field:"inc_number"}, {name: "Incident Date", field: "Incide...

Dojo DataGrid - one column not displaying data

I have used the same method accross my site for displaying a datagrid, I'm only seeing this problem in one column on one grid. All data in the 'firstname' column is showing as "...". I'm not seeing any errors or warnings. <span dojoType = "dojo.data.ItemFileReadStore" jsId = "userStore" url = "/usermanager/usergrid" > </spa...

Turning off animation in dojox.widget.Dialog

Anyone know how to turn animation off in dojox.widget.Dialog? I love the modal dialog, but want it to pop up immediately, rather than the painfully slow animate on that it does. I tried turning off the apparent animation controls, but it still animates. Also looked into the src code, but didn't see any smoking guns for a configuration op...

(dojo) dojox.form.Manager not firing observers

I have a customer dialog widget that I am attempting to use dojox.form.Manager on. I have just stumbled across this control and it looks to do most of what I was implementing (unified onchange events ) but much more. There is just one problem, the observer events will not fire. I have a form element containing multiple dijits, form,...

Browsers supporting event processing in dojox.gfx Surface

Is events processing in dojox.gfx Surface supported by browsers other than Firefox 3? Say, i have a variable named surface that is an instance of a gfx surface, i then listen to click events on it using surface.connect("onclick",null,function(e){ console.debug("clicked on the surface"); }); It works in Firefox 3, but it doesn't...

Extending dojo.gfx.Group with default instanciated shapes

I'm attempting to create some simple UI components with dojo.gfx. I've managed to extend dojo.gfx.Group, but am out of my depth getting any of the default shapes drawn to the surface. Inspecting the rendered SVG in Firebug, there's rightfully a node but no rect. The simplified class looks like this: dojo.provide("gfxui.SimpleButton")...

dojox.rpc.JsonRest query Method and Zend JSON Server

I use dojo 1.3.2 with the Zend Framework 1.10 JSON Server. I can successfully execute my method getTreeByScope defined as SMD via JSON-RPC 2.0 myService.getTreeByScope({scopeId:1,nodeId:0}); this sends this POST request: {"id":1,"method":"getTreeByScope","params":{"scopeId":1,"nodeId":0},"jsonrpc":"2.0"} All is fine. Now i wanted...

Migrating from Dojo 1.1.1 to Dojo 1.3/1.4

We are in mid of a project where we have used an extended Dojo 1.1.1 to meet the customer requirement and add richness. But there are quite some bugs and performance problems with this version of Dojo and we are looking ahead to migrate the Dojo version to overcome both the issues, but the migration cycle seems to be quite painful and ...

Value of dojox.CheckedMultiSelect not being posted with dojo.xhrPost

When I post a form using dojo.xhrPost, I get all the fields in my form POSTed except for the value of my dojox.CheckedMultiSelect, no matter what options are selected. The declaration of my CheckedMultiSelect: <div dojoType="dojo.data.ItemFileReadStore" jsId="processTypeList" url="json/processtypelist.json.php"></div> <label for="proce...

Dojo 1.4 - <a href> in dojox.grid.DataGrid's cell behaves differently from Dojo 1.3's

In Dojo 1.3 I was able to populate dojox.grid.DataGrid's cell with an <a href> HTML element (e.g. <a href='/test?id=xxx'>xxx</a>) and the (clickable) html link would then be shown. Dojo 1.4 breaks(?) this behaviour and the literal string is shown (not a link). How can I achieve the same behaviour in Dojo 1.4? ...

Place a Dojox Chart Legend into Multiple Columns

Hi, Can anyone reccomend a good way to place a dojox chart legend into columns? I would like the results to be something like this: item 1 item 4 item 7 item 2 item 5 item 8 item 3 item 6 item 9 I have many records (>20) and this would be a much better way to display the related legend from the pie chart. It appears the ...

How to show seperate google maps v3 in different FloatingPanes using dojo

I'm trying to open up more than one dojox.layout.FloatingPane with different instances of a Google Map using the V3 API. I can always get the first FloatingPane to display correctly with the map, but after the first one I can't add more. I thought maybe I couldn't add more than one google map to the page, but I tried that and it worked...

Display Custom Label from data store with dojox.charting

I am using the dojox.charting.widget.Chart2D and I am trying to retrieve the data from an dojo.data.ItemFileReadStore. I can retrieve the data, and everything works and displays, except I cannot seem to find a way to display custom labels on the items. My HTML snippet is: <div dojoType="dojo.data.ItemFileReadStore" jsId="chartDataStor...

Does XmlStore retain retrieved data?

I'm using dojox.data.XmlStore and noticed that it issues an HTTP request every time I try to do an operation on it. I took a look at the code and sure enough it executes dojo.xhrGet all the time. Is there a way to get my hands on the returned data, or even better, have XmlStore cache the data so it doesn't have to hit the back end serve...

dojo.gfx matrix transformation

Matrix transformations has got my head spinning. I've got a dojox.gfx.group which I want to be draggable with Mover and then be able to rotate it around a certain point on the surface. My basic code looks like this: this.m = dojox.gfx.matrix, . . . updateMatrix: function(){ var mtx = this.group._getRealMatrix(); var trans_m = this....

dojox.charting Setting Custom Tooltip Labels from ItemFileReadStore

I discovered that the dojox.charting.action2d.Tooltip takes a custom function to provide the text for the labels. The challenge is that the text of the label that I want to display is contained within dojo.data.ItemFileReadStore which the chart series is pointed at. I am trying to figure out some way to tie back the information passed ...

Dojo Logarithmic Axis Scale

I've been using the Dojo charting to create a Columns chart. I'm very impressed by it so far, but have decided I need a logarithmic y axis. Doesn't look like this is supported so far, though I've seen a blog entry implying it was planned at some point. Does anyone know it it is possible at the moment? If not, then I'm happy to try writi...