Login Register

dojox.grid

Help with dynamically changing the height of a grid

I'm having some trouble dynamically changing the height of a grid. I have some sort of a widget (in this case just a plain vanilla HTML button) that will increase or decrease the height of a DIV element which contains a Grid widget.

How would I get the Grid to adapt its height any time the height of the containing DIV element changes?

Custom sorting grid columns for 1.0.2

I would like to implement custom sorting, say numeric sort, instead of the default alphabetic sort,
but the solution provided at:

http://dojotoolkit.org/forum/dojox-dojox/dojox-grid-support/custom-colum...

does not seem to work for dojo 1.0.2 - perhaps it works in 1.1.0. What function do I need to override or register to replace the default comparator in either the model or the store for dojo 1.0.2?

Thanks in advance.

Dojo Grid Webinar Thursday, April 17 at 12 PST

The next Visual Ajax User Group webinar and meeting will be next Thursday, April 17 at 12 PST.

The speakers will be Scott Miles and Steve Orvell of WaveMaker. Scott is the module owner for the Dojo Grid and Steve is a core contributor for the Dojo Grid. They will be talking about "Ajax Grids - Taming and Tooling The Widget Beast."

To attend the webinar, send an email to rsvp@visualajax.org

view layout and data from the same json store

Hello Guys,

I want to have a dynamic view layout that should be defined in the same store as the data is. I first tryed the sample below with the view layout defined in the js-file. This works fine.

var store;
var ddata;
var grid;
var view1 = {
cells: [[
{name: 'name', field: "name"},
{name: 'vorname', width: "25em", field: "vorname"}
],
[

Grid problems with horizontal scrolling

I have picked up a couple of quirky behaviours with a grid that is wide enough to have horizontal scrollbars.

i) if the grid is scrolled to the right, and then you sort on a column, the grid headers become misaligned with the body rows - the body rows snap back to full left scroll, whereas the headers stay in their scrolled position, at least until you scroll again;
ii) if the grid is scrolled to the right, and you select a row, both body and headers snap back to full left scroll.

Querying the Grid using the index of the row.

I am just making my baby steps around the Dojo world. I am amazed at all the things I did not know :-).

My question is what is the best way to fetch a row from using the row index from the Grid?

I have a custom store that extends ItemFileWrite store. This store has a method , saveItem with the following body.

<javascript>

saveItem:
function( index,
templateToSave,
postUrl,
postVariable,
_onLoad,
_onError) {

TimeTextBox in Grid

I've gotten the TimeTextBox to work, sort of, in a grid by including a dojo.declare in the script section of my JSP:

dojo.declare(
	"dojox.grid.editors.TimeTextBox", dijit.form.editors.Dijit,
	{	

..

But, I can't get the result to format properly. I keep getting a full date/time like: Sat Jan 01 1972 14:00:00 GMT-0500 (Eastern Standard Time) instead of just "HH:MM A".

I've tried

dojo.declare("dojox.grid.editors.TimeTextBox", dijit.form.editors.Dijit,{
	editorClass: "dijit.form.TimeTextBox",

What's in a grid?

Scott recently created a diagram outlining the various pieces currently in the grid (click the title to see the diagram)...

Grid Modules

Unable to view headings or content

Hi,

i don't really understand why this is not working, so if anyone as any ideas i would be most greatful. I am trying to create a Data Grid on the page so far i have got it to produce the grid without the headings, but it does let you select the line (but you are unable to view the data).

here is the full source code for the page after the PHP as finished. any help will be greatly received.

test on dojox grid does not work!

Hello there,

I downloaded dojo 1.0.2, and try to run the grid test, But the following two tests are not working

test_grid_programmatic_layout.html
test_grid_programmatic.html

In other words, it is unable to create GRID (programmatic). When debug is turn on, the following error message appears:

'paddingLeft' is null or not an objecttest_grid_programmatic_layout.html (line 21).

Can anyone give me some ideas? is my installation have problem? or dojo's test has bug? if so how to fix it?

thx in advance!

Sidaxprj.

Syndicate content