Opened 8 years ago

Closed 6 years ago

#13975 closed defect (patchwelcome)

Deleting value in DateTextBox inside DataGrid

Reported by: lzboron Owned by: Evan
Priority: high Milestone: tbd
Component: DojoX Grid Version: 1.6.1
Keywords: Cc:
Blocked By: Blocking:

Description

When user sets value to dijit.form.DateTextBox? in ordinary form, then clicks away and then returns to DateTextBox? and deletes value, it results to empty DateTextBox?. If DateTextBox? is used inside dojox.grid.DataGrid?, same steps lead to setting value of DateTextBox? to 1.1.1970. I think it should behave the same way as when outside of DataGrid?, which means, it should be empty.

Here is a sample of code replicating problem:

<div data-dojo-id="store" data-dojo-type="dojo.data.ItemFileWriteStore?" data-dojo-props="data:{identifier:'id', items:[{id:'1', a:null, b:'111'}, {id:'2', a:null, b:'222'}]}"></div> <table data-dojo-type="dojox.grid.DataGrid?" data-dojo-props="store:store">

<thead>

<th field="a" editable="true" cellType="dojox.grid.cells._Widget" widgetClass="dijit.form.DateTextBox?">a</th> <th field="b" editable="true" cellType="dojox.grid.cells._Widget" widgetClass="dijit.form.ValidationTextBox?" widgetProps="{regExp:'.{3}'}">b</th>

</thead>

</table> <div data-dojo-type="dijit.form.Form">

<div data-dojo-type="dijit.form.DateTextBox?"></div>

</div>

Change History (2)

comment:1 Changed 6 years ago by bill

DojoX Grid and EnhancedGrid are deprecated in favor of dgrid and gridx.

You should upgrade your code to use one of those two grids.

We will consider patches to the old DojoX Grid code though.

comment:2 Changed 6 years ago by bill

Resolution: patchwelcome
Status: newclosed
Note: See TracTickets for help on using tickets.