jQuery UI Widgets Forums Grid row detail

This topic contains 2 replies, has 2 voices, and was last updated by  pankhi 9 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    row detail Posts
  • row detail #53646



    To demonstrate my issue please check this link: http://jsfiddle.net/YFWQ6/2/

    As you have seen that n grid data to show the date we have mentioned the date format. “MM DD YYY HH:SS”.
    and i have create a global variable in core file and mentioned the format n datafield:-
    columns: [
    { text: ‘Date (PST)’, datafield: ‘TimeStamp’, type: ‘date’, cellsformat: DateTimeFomat},

    where I have defined the DateTimeFomat= “MM/dd/yy HH:mm” in core file.

    I want to use the same format in detail tab too.
    So that in case I have to chnge the format of the date I can make change n one file.
    Will you please tell me how to achieve the same in detail tab?

    row detail #53649


    Hello pankhi,

    This can be achieved through dataAdapter’s formatDate method. If you have defined:

    var DateTimeFomat = "MM/dd/yy HH:mm";

    Then you can change your code as follows:

    var TimeStamp = "<div style='margin: 10px;'><b>Date:</b> " + dataAdapter.formatDate(datarecord.TimeStamp, DateTimeFomat) + "</div>";

    Best Regards,

    jQWidgets team

    row detail #53660



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

You must be logged in to reply to this topic.