Hi,
there is a strange behavior with validators in combination with date fields in listgrids.
I modified your inline data example to demonstrate it:
http://www.smartclient.com/#inlineData
Just replace the original code with the below one and click on "Try it":
My modification:
- canEdit:true
- listEndEditAction:"next"
- validateOnChange:true
- added two date fields ("from" and "until") with validators
Ok, now add a new record, place the cursor to the Capital or Country field and click directly on the date picker to choose a date for the "from" or "until" field without moving the cursor to one of the date fields. After you've picked any date from the picker, it will not appear in the grid.
Can you reproduce this case? I think this could be a bug or what do you think?
Cheers
there is a strange behavior with validators in combination with date fields in listgrids.
I modified your inline data example to demonstrate it:
http://www.smartclient.com/#inlineData
Just replace the original code with the below one and click on "Try it":
Code:
isc.ListGrid.create({ ID: "countryList", width:500, height:224, alternateRecordStyles:true, canEdit: true, editEvent: "click", listEndEditAction: "next", validateOnChange:true, fields:[ {name:"countryCode", title:"Code"}, {name:"countryName", title:"Country"}, {name:"capital", title:"Capital"}, {name:"from", title:"from",type: "date", validators:[{type:"required"}]}, {name:"until", title:"until", type: "date", validators:[{type:"required"}]} ], data:[ {countryCode:"US", countryName:"United States", capital:"Washington, DC"} ] })
- canEdit:true
- listEndEditAction:"next"
- validateOnChange:true
- added two date fields ("from" and "until") with validators
Ok, now add a new record, place the cursor to the Capital or Country field and click directly on the date picker to choose a date for the "from" or "until" field without moving the cursor to one of the date fields. After you've picked any date from the picker, it will not appear in the grid.
Can you reproduce this case? I think this could be a bug or what do you think?
Cheers
Comment