Hi,
I have a number of different custom renderers.
How can i sort based on the data rendered in the column?
When i click sort, none of the columns data changes but data in other rows does move.
Here is the easiest example to look at as some of the other ones are a lot more complex:
function renderPrice(instance, td, row, col, prop, value, cellProperties) {
let source = instance.getSourceDataAtRow(row);
let price = (source.customer_pricing && source.customer_pricing.amount) ? source.customer_pricing.amount : '0.00';
td.className = cellProperties.className + ' price';
td.innerHTML = parseFloat(price).toFixed(2);
return td;
}
Thanks