Format Kendo Grid Column Filter For Percentages
I have a kendo grid and my datasource data returns number with unknown decimal places. So I'm using a parse function on the datasource to compensate for that. DefaultMonoCPP: {
Solution 1:
My suggestion would be to format the numeric textbox as a percentage and set the step to 0.01 so that it increments/decrements 1% at a time. If you're worried about the user typing in a percentage as a whole number, handle it in the change event.
e.kendoNumericTextBox({
format: '{0:p4}',
step: 0.01,
decimals: 4,
change: function () {
varval = this.value();
if (val > 1) {
this.value(val / 100);
this.trigger("change");
}
}
});
Post a Comment for "Format Kendo Grid Column Filter For Percentages"