Welcome Guest Search | Active Topics | Sign In | Register

Updating a grid cell's value when the column is a DateTimeColumn Options
Joan Darling
Posted: Thursday, April 21, 2016 12:39:40 PM
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]);
eo_support
Posted: Friday, April 22, 2016 9:38:59 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.