jQWidgets Forums

jQuery UI Widgets Forums Grid Jqxgrid aggregate datetime column

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 10 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Jqxgrid aggregate datetime column #69373

    sanjeev
    Participant

    Hi,

    I have a jqxgrid in which i have datetime column to enter time duration. for that, i have given cellformat as ‘HH:mm’
    i want to display aggregate of duration in string format in aggregate row. i have implemented custom aggregate to calculate and return total duration.
    but the code gives error since cellformat is given as ‘HH:mm’.

    i have implemented a sample fiddle fiddle to demonstrate my problem.

    http://jsfiddle.net/sanjeev123/hrxtpq9p/

    please verify the aggregate method given in last column of jqxgrid. the code will works fine if we remove cellsformat: “HH:mm” from column. how to give cellsformat as string for aggregate cell only

    Jqxgrid aggregate datetime column #69378

    Peter Stoev
    Keymaster

    Hi Sanjeev,

    Your custom function will definitely raise an error.

      'dd': function (aggregatedValue,currentValue,column, record) {
                                         
                  return 'fdgfg';
              }
    

    Aggregates are for Aggregation of Numeric data. Dates are not so you cannot aggregate dates, even if your function was written correctly.

    Best Regards,
    Peter Stoev

    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.