jQuery UI Widgets Forums Grid Custom cellsformat


This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 3 years, 6 months ago.

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


    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.

    • This topic was modified 3 years, 6 months ago by  trifas.
    Custom cellsformat #113778


    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:

    Best Regards,
    Hristo Hristov

    jQWidgets team

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

You must be logged in to reply to this topic.