Login Register

DataGrid

Why does creating a <div dojoType="dojox.grid.DataGrid"> cause IE6 to throw the "This page contains both secure and nonsecure...

...and how to I get rid of this problem?? [See also Dojo Ticket #7571]...Any ideas guys?? Thanks in advance.

I tried applying the following suggestion from another forum http://stackoverflow.com/questions/59734/coding-dojo-with-ie-and-ssl to no avail...

My application is using Dojo 1.1.1 on an SSL-only website. It is currently taking advantage of dijit.ProgressBar and a dijit.form.DateTextBox.

Everything works fabulous in Firefox 2&3, but as soon as I try the same scripts in IE7 the results are an annoying Security Information dialog:

Insert Nested Grid Programmatically into an Expando

I'm working on a retail site which displays a list of search results in a DataGrid. I'm using the "expando" feature to show details for these items when the user "expands" the row, similar to the example here:

http://download.dojotoolkit.org/release-1.2.0/dojo-release-1.2.0/dojox/g...

Changing the data in a DataGrid

I created a DataGrid using the following more or less stolen code, and it works fine:

var layout4 = [
{name: 'Years', width: "40px", field: "name"},
{name: 'Months', width: "80px", field: "value"}
];

dataStore = eStore;
// create a new grid:
grid4 = new dojox.grid.DataGrid({
query: { key: '*' },
id: 'gdYears',
store: dataStore,
structure: layout4
}, document.createElement('div'));

// append the new grid to the div "gridContainer4":

ClientFilter

Has anyone have experience with the ClientFilter (dojox.data.ClientFilter) which is used for local caching ?
As described on [url]http://docs.dojocampus.org/dojox/data/ClientFilter[/url] it is just necessary to define the ClientFilter dojo.require('dojox.data.ClientFilter'); BEFORE the required DataStore and to assign queryOptions="{cache:true}" to the appropriate DataGrid.
This is what i did so far... but that doesn't work! I think i have to somehow change the fetch()-method but I'm not sure. Has anyone experience with it and maybe an example code !?!??!

dojox.grid.cells.Select displays values, not options

I am using a 1.2 DataGrid to display some data. One of the cells is editable and I am using a dojox.grid.cells.Select widget for selecting a set of values. My layout is defined like this:

var layout = [
  { field: 'lineNbr', name: 'Line Nbr'},
  { field: 'fiscalYear', name: 'FY'},
  { field: 'scenarioDataSourceId', name: 'Source', 
       editable: true, type: dojox.grid.cells.ComboBox, 
       options: [ 'Plan', 'Actual' ], values: [ '0', '1' ]}
];

DataGrid 1.2 get and getCell

I've noticed that the methods in grid 1.2

dojox.grid.DataGrid.get();
dojox.grid.DataGrid.getCell();

no longer work as describe here http://api.dojotoolkit.org/jsdoc/dojox/HEAD/dojox.Grid
Is this intentional?

Sorry for not providing concrete code, however as a test example, attach an onStyleRow extension to a DataGrid and use the following snippet;

dojo.connect(grid,"onStyleRow",function(inRow) {
    /*
     * Both yielded undefined
     */

    alert(grid.getCell(0));
    alert(grid.get(inRow.index));
});

DataGrid with QueryReadStore not Scaling to 100,000 Rows

We've just spent a month integrating Dojo throughout our large technical application... but at the eleventh hour, we have run into a showstopper issue with DataGrid and QueryReadStore: it's *unacceptably* slow, for no obvious reason.

For example, the first HTTP request to our Web service to fetch the first 100 rows (just 5 columns) usually takes 7 seconds. That is, the HTTP request alone takes around 7 seconds, and then there is a several-second lag after that before Dojo renders the rows. After that, HTTP requests typically take 6 to 17 seconds.

Syndicate content