jQuery UI Widgets Forums Grid Cellsfoarmat in cellsrenderer

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 7 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Cellsfoarmat in cellsrenderer #83674


    Hi team.
    My Grid works just fine.The only problem i have encountered is that i didnt find how to apply the cellsformat in custom cellsrenderer.Below is my code.Any help is appreciated.Thanks in advance.

    { text: 'Balance',datafield:'balance',width:'7%',cellsformat:'d2',cellsalign:'right',align:'right',
           	             	cellsrenderer: function (row, columnfield, value, defaulthtml, columnproperties) {
           	             	  return '<div style="overflow:hidden;text-overflow:ellipsis;padding-bottom:2px;text-align:right;margin-right:2px;margin-left:4px;margin-top:4px;float:'+columnproperties.cellsalign+';">' + (value) + '</div>'; 

    with Best Regards
    Rahis ARM

    Cellsfoarmat in cellsrenderer #83688


    Hi rahisarm,

    The cellsrenderer callback overrides the built-in cells rendering, so you cave to create your custom function in your cellsrenderer to format the value.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team

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

You must be logged in to reply to this topic.