jQuery UI Widgets Forums Grid Date value in the grid column.

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 9 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Date value in the grid column. #52124

    hemant.kalal
    Participant

    Hi,

    while editing the cell in the grid I want a calendar to come and it ia coming but when I select the value of that cell using

    updaterow: function (rowid, rowdata, commit) {
    // synchronize with the server – send update command
    // call commit with parameter true if the synchronization with the server is successful
    // and with parameter false if the synchronization failder.
    $(“#InTimeline”).val(rowdata.Timeline);
    $(“#txtEditingRecordID”).val(rowdata.ID);
    ThirdPageSubmit(‘true’);
    commit(true);

    },

    rowdata.Timeline is giving value as “Thu Mar 13 00:00:00 EDT 2014”
    I want the value to come as “mm/dd/yyyy” In the data setting I am using following format.

    { text: ‘Timeline’, datafield: ‘Timeline’, columntype: ‘datetimeinput’, width: ‘7.5%’, align: ‘right’, cellsalign: ‘right’, cellsformat: ‘d’ },

    Date value in the grid column. #52138

    Dimitar
    Participant

    Hello hemant.kalal,

    The updaterow callback function is used for server synchronisation and the rowdata object returns the actual cell values without formatting. Thus, any formatting should be applied manually.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.