Login Register

editors

problems using editors with a sorted grid

I've been working on using the Dojo grid for display and editing of values from a database. Thanks to these forums, I've gotten things working fairly well over the past several months.

Today, though, I attempted to use dojox.grid.editors.Bool as the editor for one of my columns. This works great when the grid is originally loaded unsorted. I can check and uncheck boxes on various rows just like I want to.

After the user sorts the grid, however, by clicking on one of the column headings, a very strange behavior develops: clicking checkboxes often causes TWO checkboxes to change state, the clicked checkbox and another one.

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",

HELLO? IS THERE ANYONE THERE???? dojox.grid.editors.TimeTextBox

Has anyone gotten the TimeTextBox to work in a grid? Any assistance would be greatly appreciated.

My JSON data is in the format of 9:53 A, 10:14 P, etc ...

this is the TimeTextBox snippet from my gridLayout:

{name: 'Time In', width: '15%', field: 'timeIn', editor: dojox.grid.editors.TimeTextBox , constraint: {formatLength: 'short'}},

I've also tried:

{name: 'Time In', width: '15%', field: 'timeIn', editor: dojox.grid.editors.TimeTextBox , constraint:
{timePattern:'h:mm:ss a'}},

Syndicate content