dojox

Select all checkbox in dojo 1.4 grid

Hi guys while migrating from dojo 1.02 to 1.4 i have encountered a problem with grid. In 1.02 versions i have implemented my own check box class inherriting from dojox.grid._CheckBoxSelector dojo.provide("MyCheckBox"); dojo.declare("MyCheckBox", dojox.grid._CheckBoxSelector, { format: function(inDatum, inRowIndex) { return '<...

[dojox] dojox.image.lightbox into dijit.layout.tabcontainer

Hello everybody! I try to insert an image, witch could be open with dojox.image.lightbox into a TabContainer. The TabContainer works, but when I add my image: <a dojoType="dojox.image.LightBox" group="grouped" title="mytitle" href="pathToImage"><img src="pathToImage" height="180px" width="240px" /></a> The TabContainer doesn't work a...

I migrated dojo 1.3 to dojo 1.4 and tree sub levels are not aligned properly

Hi, I migrated dojo 1.3 to dojo 1.4 and tree sub levels are not aligned properly. All sublevels are left aligned with root level. I cant identify the heirachy in tree grid. Pls suggest what are the changes to be done in dojo 1.4 tree Any help would highly appreciated. Thanks, John ...

Save Dojox GFX Canvas as SVG

Is there a way to serialize a Dojox GFX canvas as SVG? I am looking for a way to save my Dojox GFX canvas contents in a way which can be exported as a graphics file (SVG, PNG, JPG, etc.) which could be easily saved or printed, and SVG seemed the most likely. I found a reference to a function dojox.gfx.utils.toSvg, which looked perfect:...

dojox.grid.DataGrid and CouchDBRestStore: no new values on scrolling the grid

I recently set up a dojox.data.CouchDBRestStore in combination with a dojox.grid.DataGrid. Initially the data get displayed as they should. But if you scroll down the grid no new values get retrieved from the couchdb. Adding a row index to the store shows that the grid is aware of the total count of the documents within the database as ...

Setting the value (selected option) of a dijit.form.Select widget

I have a dijit.form.Select widget. It's tied to a data store, if that matters. It's filled with several options already. All I want to do is programmatically set its value. I can get its value using myWidget.attr('value') but if I try to do myWidget.attr('value', 5) for example (where 5 is one of the valid values), all it does is reset t...

Dojo 1.4.1 + IE8 dojox.charting labels not working

Hi everybody, I know this problem has already been discussed in Dojo 1.4 - IE 8 dojox.charting label not shown -> dojox.gfx but the solution does not work for me :-( Neither this <meta http-equiv=“X-UA-Compatible” content=“IE=7” /> nor this <meta http-equiv=“X-UA-Compatible” content=“IE=EmulateIE7” /> as proposed in the ticket #10...

how to assign custom text to x-axis and y-axis(using Dojo controls)

hello friens I am using Dojo controls <script type="text/javascript"> dojo.require("dojox.charting.Chart2D"); dojo.require("dijit.form.NumberSpinner"); var chart1; // The data to use. var seriesData = [1, 2, 3,4, 5, 6, 7, 8]; dojo.addOnLoad(function() { chart1 = new dojox.charting.Chart2D("Div1"); chart1.addAxis("y", { vertica...

dojo grid source

I want to use dojo grid with asp.net mvc but i don't know how the server side function must look like(parameters and return json). All the samples i've seen use a file as a source for grid. Any tips? ...

How do I enable right-click on a link in a Dojo DataGrid?

I have a DataGrid set up where the first column contains a link (Dojo 1.4, escapeHTMLInData=false). When the link is right-clicked, it changes color briefly, but nothing happens. How can I make the right-click show the browser's usual context menu for links? ...

Problems with Widgets in dojox DataGrid

I am trying to include some editing Widgets in my dojox.grid.DataGrid seem to be having a lot of difficulty. I have tried everything I can think of to get it to work, but something just isn't going right. When I started having problems, I tried to copy almost exactly from the grid tests and model my "breakout" of code just like that, b...

Dojox Datagrid contains data, but shows up as empty

I'd really appreciate any help on this. There is this Dojox Datagrid that I'm creating programatically and supplying JSON data. As of now, I'm creating this data within JavaScript itself. Please refer to the below code sample. var upgradeStageStructure =[{ cells:[ { field: "stage", name: "Stage", width:...

how to define y axis as % value using dojo

hello friends I have x and Y axies y axis I need define like % value 10% 20%..etc.. this values should chnage dynamicaly.. can anybody tell me ? thanks ...

Destroying descendants for dojox.layout.ContentPane

Hi, I just want to clean all the content of my dojox pane before load another page. There is an attribute called cleanContent that seems not working. Anyway this is a jsp page I import: <head> <script type="text/javascript" src="./js/listMetadataClass.js"></script> <script type="text/javascript" src="./js/utility.js"></scrip...

how to write click event on each slice or bar using dojo

hello friend I need to have click event on each slice on pie chart as well as bar.. differnt bar as differnt event fire using dojo.. thansk for all time.. ...

Disable nested sorting in dojo enhancedGrid

I'm currently trying to disable the nested sorting, as it does not pass the parameters for the nested sort to the store url (only the first sorted column gets passed over). I tried to set "nestedSorting: false" in the grid setup (programmatically), but the sorting is still being showed in the grid headers. Isn't it possible to disable th...

dojox.grid.DataGrid can't display repeat rows?

We have a situation where we need to display data from a database in a grid which has repeat rows, but it seems at least the basic examples fail when the cell data is identical with Sorry, an error occurred. An example follows: <script> dojo.require("dojo.data.ItemFileWriteStore"); dojo.require("dojox.gri...

How to create a new widget for dojox.grid.cells.dijit?

I am trying to create a button widget for dojox.grid. My problems are: 1) The button is only shown when I double click the grid. 2) I can't figure out how to set attributes through declarative markup. It seems that the markupFactory function is responsible for it but it doesn't set the widget's label. The following code demonstrates what...

How do you conditionally style a cell in a Dojo data grid?

Essentially what I want to do is to apply additional CSS classes to individual cells in a data grid based on the value of the cell. An example would be to color the text red when a dollar value is negative. The only solution I've found was to use the formatter of the column to create a string for a span that has the class based on the ...

dijit.form.FilteringSelectinitial initial value always null.

I'm using QueryReadStore as data and displaying the widget using the declarative way. My store looks like this: <div style="display:none" jsId="role_store" url="some/url/here" requestMethod="post" dojoType="dojox.data.QueryReadStore"></div> My widget is like this: <input dojoType="dijit.form.FilteringSelect" id="role_id" ...