dojox

How to override a method in dojox _Scroller class?

Hi there, How do I override a method in dojox.grid._Scroller class from a class extending dojox.grid.DataGrid. dojox.grid.DataGrid extends dojox.grid._Grid, which requires dojox.grid._Scroller. The method of interest here is: getScrollBottom(inTop). Thanks in advance! David ...

How to set the Dojox Datagrid row height to a single line

Hey all, I'm trying to fix the height of a Dojox 1.3 Datagrid to a single line (like Excel). The current functionality is to automatically increase the row's height when more data than will fit into a single line is available. Is there an easy way to accomplish this? It seems like it should be built in functionality for a datagrid, c...

How to put a Dojox.grid in a dijit.Dialog

I've read through the posts about dojox.Grid here, including the one about the tabcontainer, but it doesn't seem to solve my problem. I have a grid that I am adding programmatically which works a treat if the grid is in the "main" markup, but ceases to display if I put the grid in a dialog. Any ideas as to why? Using dojo 1.3.1. d...

Having Issues Making Dojo Grid Cells Editable.

I'm having difficulty getting my Dojo Grid to become editable. I'm using Dojo 1.3 from Google. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.3/dojo/dojo.xd.js" djConfig="parseOnLoad:true, isDebug: true"></script> I've got my data in JSON format and it shows up correctly, but I can't get it t...

Controlling the cache of a DataGrid

Hi there, I have implemented a virtual-scrolling DataGrid with an underlying QueryReadStore as follows <span dojoType="dojox.data.QueryReadStore" jsId="logsStore" url="./logs.do" requestMethod="post"></span> <div class="logsListContainer" style="align: center; width: 100%; height: 100%; border: 0px" > <table height="100%" id="logs" jsI...

Is it possible to do a "not equals" query in Dojo Grid?

I have a Dojo Grid that I'm filtering with a query that's set in a javascript function. function filter() { var grid = dojo.byId("gridNode"); grid.setQuery({fieldName:"Some Text"}); } What I'd really like to do, though, is filter it so that it shows all entries where the fieldName value is not empty. Does anyone know if there...

How can I add to a Dojo Grid Event instead of replacing it?

I have a dojo grid on which I want to perform some action when the "ENTER" key is pressed. However, I only want to add to what DOJO already does when a key is pressed. When I try to use a handler it replaces the onKeyDown function in dojox.grid._Events instead of adding to it. Is there any way I can make sure that the _Events function...

How to update a Dojo Grid cell value using a TooltipDialog (and DropDownButton)

I have a dojo grid which is using some editable dijit form fields. All is well, until I try ot implement an country (multi) select cell as an Tooltip Dialog; i.e., show a drop down button which opens the tooltip dialog populated with a checkbox array to select one or more country. Once checked and clicked OK, the cell should update with ...

Dojox legend color for markers incorrect

Hi, I have a dojox chart where the legend created for the chart never has the correct color for markers. The legend color for the marker should match what's on the chart. It's always seems to use a default color to represent the marker in the legend. Any ideas?? Possible bug?? BTW: I'm using Dojo 1.3.0 Thx!! John ...

Dojo DataGrid loading selected items

I have a DataGrid and want a user to select multiple items and click a button to do something with those items (such as delete). When only a few items are selected, the deleting works, but if the user selects all the items without scrolling slowly over them, some of the selected items are null. I also tried grid.removeSelectedRows(), b...

Handling dojoX cometd unsuccessful subscription

Hi, I'm using a Bayeux server implementation for Netty and the latest version of dojoX cometd. When I refuse a subscription a /meta/subscription message is sent with successful set to false. Response: [{"channel":"/meta/subscribe","clientId":"abf5fb2408bf4f8e","successful":false,"subscription":"/badChannel","id":"3","timestamp":"2009-...

Dojox charting legend image rotation

Hi, Is there a way to rotate an image symbol in the legend widget?? I'm using a few vertical lines in my graph to show the location of a leak on a chart. The legend shows these lines as horizontal which is fine but, it would be better to rotate it and show a vertical line. That would be wayyyy more intuitive to the user. Thx!! John ...

dojox.Grid row background color

Hello, I have a Grid and I would like to change the background color, do you know how to do it ? Thanks for your help, have a nice day. Here is my code : var jsonStore = new dojo.data.ItemFileReadStore({url: "..." ?>"}); var model = new dojox.grid.data.DojoData(null,jsonStore,{jsId: 'model', rowsPerPage: 20, query: { date: '*' }}); ...

dojox flvideo widget destroy in AJAX

When using dojox.av.FLVideo widget, I have encountered a problem where I can't destroy the widget manually. In simple logic: 1st AJAX call [Retrieves a partial page A with video] var videoDiv = document.createElement('div'); videoDiv.id = "vid"; mainContent.appendChild(videoDiv); var newVideo = new dojox.av.FLVideo({initialVolume:.7, m...

TextBox inside Grid does not work properly

Doesn't show space typing inside textBox. And needs two clicks to accept focus. Try it at http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/grid/tests/test%5Fgrid%5Fformatters.html I use FF 3.5 ...

Problem injecting a dojox.datagrid into a dijit.layout.contentpane into a dijit.layout.tabcontainer

didn't work in FF. Did I use the right function order of grid, tabStudios, tabContainer and startups? Neither the tabcontainer nor the grid have been injected. Has someone a suggestions for this problem? dojo.addOnLoad(function() { var tabContainer=new dijit.layout.TabContainer({region:"center",id:"studio-tab"}); var tabStudios=...

How to configure dojox.cometd for callback-polling?

So far I found some examples on how to configure dojox.cometd, but none of them configure the connectionType. I am currently more interested in callback-polling instead of the long-polling (that is the default one, as far as I know). Somebody can help me here? I must admit that the dojox documentation is quite obscure for me, and even t...

Javascript scope issues

Hello, I am extending dojo's dojox.data.JsonRestStore and I want to provide my own fixed scheme. this is getUsername won't work because it doesn't refer to the current datastore Take a look at this code: /** * @author user */ dojo.provide("cms.user.UserAuthenticationStore"); dojo.require("dojox.data.JsonRestStore"); dojo.declare("c...

Capturing Keyboard Events in Dojox GFX

Is it possible to capture keyboard events within a diagram produced using Dojox.GFX? We have a simple graphical application which involves some shapes drawn on a surface. We would like to add some simple keyboard interaction, e.g. using the Delete key to delete a shape, and using "Ctrl+A" to select all shapes. I have tried adding dojo....

dojox.gfx bounding box for Text and Group nodes

The documentation for getBoundingBox() in dojo says: Returns a bounding box of a shape. A text shape is a point-based object, so it doesn't define a bounding box. I don't get it. Any sane implementation of vector graphics for the web includes bounding box for text objects (raphaelJS and jQuery SVG that is)! What does "a point b...