Rank: Advanced Member Groups: Member
Joined: 3/9/2010 Posts: 119
|
I'm using the setValue() method but when I pass it a date as a string or date as a date object I get the error "object does not support method getFullYear"
Code: JavaScript
function gridClientSideBeforeEditItem(gridItem, save) {
beforedates = [
Date.parse(gridItem.getCell(6).getValue().toString()),
Date.parse(gridItem.getCell(7).getValue().toString())];
}
//after the dates are evaluated and found to fail for any reason the cells are reset to there previous values
//this is where the error occurs
gridItem.getCell(6).setValue(beforedates[0]);
gridItem.getCell(7).setValue(beforedates[1]);
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
We tested this and it seems to work fine. Can you post a full test page so that we can run it here in order to reproduce the problem?
Thanks!
|