jQuery UI Widgets Forums Grid Custom cellsformat

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 4 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Custom cellsformat #113768

    trifas
    Participant

    Is it possible to define a custom value for the “cellsformat” property?

    I understand I can use cellsrenderer to return a custom HTML for each cell, but was wondering if a simple formatting that I use often could be written as a “cellsformat” input.

    We often need to display percentages ranging from 0 to 100, but receive values from the server ranging from 0 to 1.

    Custom cellsformat #113778

    Hristo
    Participant

    Hello trifas,

    You maybe know the symbol for the percentages is the p symbol.
    One more thing, you could try to use the beforeLoadComplete callback of the jqxDataAdapter.
    With it, you could multiply the value from the server with the desired step.
    Please, take a look at this demo:
    https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/foreignkeycolumn.htm?light

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.