jQuery UI Widgets › Forums › Grid › Custom cellsformat
This topic contains 1 reply, has 2 voices, and was last updated by Hristo 2 years, 11 months ago.
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.
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:
You must be logged in to reply to this topic.