jQWidgets Forums

jQuery UI Widgets Forums Grid Progress bar within grid

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Progress bar within grid #51937

    ArunKumar
    Participant

    Hi,

    I need a progress bar in one column of the grid .Is it possible to do?

    Regards,
    ArunKumar

    Progress bar within grid #51948

    Peter Stoev
    Keymaster

    Hi ArunKumar,

    You can simulate a ProgressBar by using any Grid column’s “cellsrenderer” callback function which you can attach to a column of your choice.

    Example:

    cellsrenderer: function (row, colum, value) { var cell = '<div style="margin-top:5px;">'; cell += '<div style="background: #058dc7; float: left; width: ' + value + 'px; height: 16px;"></div>'; cell += '<div style="margin-left: 5px; float: left;">' + value.toString() + '%' + '</div>'; cell += '</div>'; return cell; }
    

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Progress bar within grid #51957

    ArunKumar
    Participant

    Hi Peter,

    Thanks for your response.It’s works for me.Continue the great work!

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

You must be logged in to reply to this topic.