dojo

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? ...

parsing dojoType on AJAX loaded content

I'm getting an error when parsing checkboxes in a table that is loaded with AJAX, but I get an error saying the widget with that id is already registered: "Error('Tried to register widget with id==userListUncheckAll but that id is already registered')" And I'm guessing this happens because we take out the current table, then replace it ...

dojo and Displaying Inline SVG

I am attempting to display a dynamically created SVG inline in a dojo based application and am running into some difficulty. When I navigate directly to the SVG, it renders fine in Firefox 3.5/3.6 and Chrome, but when I inline it, verifying I have the right DOCTYPE and XML namespaces, both Firefox and Chrome just display a pile of text ...

Properly destroying dojo DataStore

I am extensively using declarative dojo DataStores in my application and connecting them to various declarative data driven Widgets. The problem comes in when I attempt to "destroy" the ContentPane that contains the DataStores. All the declarative examples using datastores use the attribute jsId to have the dojo parser set the datastor...

Manipulating DOM of Multiple dijit Widget Instances

I have developed a custom dijit Templated Widget. I have to do some DOM manipulation of the children of the containerNode. Everything works fine, except when I have two of the Widgets loaded, and the manipulation of the children of the containerNode seems to affect all of the Widgets of the same type, not just the particular instance o...

Is there a way to connect dijit.form.DropDownButton.openDropDown() (or closeDropDown()) on mouse up ?

Hi. In dojo 1.4 default, dijit.form.DropDownButton.openDropDown() and closeDropDown() are connected to mouse down event. Is there a way to connect them not to mouse down but to mouse up event ? I want to realize draggable DropDownButton and open/closeDropDown() invoked just after mouse down is too early. ...

Supporting Multiple JS libraries

I have developed one of my modules using Dojo. Its gone really well and I have done a lot of custom plugins and server support in Dojo to allow AJAX calls, RPC + SMD communication with my server. However, now that I am getting onto the user side of things, I am seeing that jQuery has some really nice already built plugins. Do you think...

Modify scrollbars in dojo -- dijit.layout.BorderContainer

I'm using dijit.layout.BorderContainer for layout on a page. The regions present are top, leading, and center. The top and leading regions appear just like I want them to. The center region, however, has a scrollbar. Instead of a scrollbar for just the center pane, I want one scrollbar for the entire window. That is, I want to move the t...

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? ...

Does YUI compressor support bundling of multiple files?

I created a moduling system using jQuery. Is there any build system something similar to Dojo's Shrinksafe, that could combine all my module files into one single file for production? Does YUI Compresser is all about single file compression or does it support bundling the module files as well? JavascriptMVC uses a custom build of Shrin...

Get Text from "href" with dojo ?

Hi, i 've the following html: <table id="mytable"> <thead> </thead> <tbody> <tr> <td><a href="#" onclick="doSometThingCrazy(); return false;">test</a></td> </tr> </tbody> </table> Now i want to get all links inside this table with dojo. So far so good: dojo.query("#mytable a").forEach( ...

Dojo - check if event is connected

Hi, is there a way to check if an item has already an event handler connected ? like: if (!isconnected(item)) { dojo.connect(item, 'onclick', doSomething()); } ?? ...

Dojo buttons not rendering correctly on ie 7

This only happens on Internet Explorer 7 or ie 8 compatibility mode , the button labels appears in the wrong place of the page, but when I place the cursor on them the label appears in the right place, I attached some screen shots. thx in advance for all the help you can bring me ...

hidden element dojo parsing

How can I avoid the dojo parser showing a hidden element after it's parsed? <input type="checkbox" dojoType="dijit.form.CheckBox" style="display:none"> When the dojo parser is done, the dijit checkbox will be shown, but the input "inside" it, will still be hidden. I want the dojo parser to create the dijit checkbox, but keep it hidden...

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 create a javascript function to create array values from a gridview?

hello friends,,.. I am using code like this.. http://dojocampus.org/explorer/#Dojox_Charting_2D_Simple%20Pie%20Chart I need to update the pie chart by an On Click event on gridview column. I am showing four columns in my pie chart. That is, I have four columns in a gridivew I need to pass to update the pie chart with the On Click ev...

how to pass arry values to dojo pie chart using javascript

Please can any one hlep me out how to pass arry values to the dojo pie chart using javascript.. I need to update the pie chart on fly.. on selection on user from gridivew.. Thanks ...

How to use Dojos Build tool?

I've written some javascript in my application which are scattered around in various javascript files. Should I use the build tool to compress them or is just for new Dijits you create? ...

Implementing a client side sort on a page after loading

I am developing a web-app which displays a list of products(say 10 items) for the user. The user has the option to sort the result by price, brand etc. The data is loaded from the database and it is pretty small list. How do I do sort the results by their attributes, which is constant. Enlighten me on implementing the client side sorting...