Grid with DateTextBox

View: New views
1 Messages — Rating Filter:   Alert me  

Grid with DateTextBox

by bostondevin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hello –

 

I am attempting to use the Dojox Grid and have a column be an editable date cell using the dojox.grid.cells.DateTextBox (with the little popup calendar) like this:

 

<TH field="col6" cellType="dojox.grid.cells.DateTextBox" formatter="dateFormatter" editable="true">Date</TH>

 

For the data, I’m using an ItemFileWriteStore and populating the date column with either a prefilled date or null if there isn’t a date.

 

All works fine, however if I pass a null, the calendar opens to 12/31/1969 instead of today’s date. Does anyone know how to make it open to today if the date is null instead of this strange date in the past?

 

Thanks!


_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest