I've got a grid bound to a result set. Two of the columns need to be percentage values, though they come in as decimals. I can get them to format as percentages (data: .97, displayed: 97%) when just viewing with two different methods, but when I tab into the cell/column, the value goes back to decimals and I need the percentage/whole number to stay visible. Any ideas?
I've omitted some columns to save reading:
I've omitted some columns to save reading:
$("#calcParameters").kendoGrid({ //dataSource: data.marketSectors, selectable: "single", editable:true, resizable: true, pageable: false, sortable: true, scrollable: true, navigatable: true, serverFiltering: true, toolbar: [{name: "addNew", text: "Add Record", click: function(){alert('hi');}}, "cancel"], columns: [ {field: "recordId", hidden:true}, {field: "premiumRetentionFactor", title: "Retention Factor", template: "<div> #= kendo.toString(premiumRetentionFactor, 'p0') #</div>" }, {field: "dividendRetentionFactor", format: "{0:p0}", title: "Return Factor", editor:percentEditor}, { command: ["destroy"], title: " ", width: 125} ], save: function(e) { e.model.updated = true; } });