jQWidgets Forums

jQuery UI Widgets Forums Grid Field math operation

Tagged: 

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Field math operation #66852

    yllsuarez
    Participant

    Hello,

    I have an array ‘athletes’ with a field ‘weight’ where the athetes weight is stored ain pounds.
    athletes {
    { name: ‘John’, weight:’160′} ,
    { name: ‘Mike’, weight:’150′} ,
    { name: ‘Andy’, weight:’145′} ,
    {

    I like to show the value on a grid, but showing the weight in kilograms.

    I try this,
    { text: ‘Kg’, datafield: ‘weight’ * 0.45 , cellsalign: ‘right’ , width: 90 , aggregates: [‘sum’] }

    Field math operation #66888

    Peter Stoev
    Keymaster

    Hi yllsuarez,

    Define and implement cellsrenderer for that column.

    Best Regards,
    Peter Stoev

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

    Field math operation #66936

    yllsuarez
    Participant

    great

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

You must be logged in to reply to this topic.