Hi,
During my implementation of custom sortings in my grid, I have came to a problem. My cells can contains numerical values like single values, range of values, or range of values plus mean. It is rendered in the cells as so:
Single Value:
10
10 cm (if unit is available)
Range of values:
10 to 20
10 to 20 cm (if unit is available)
Range of values plus mean:
10 to 20 - Mean: 15
10 to 20 - Mean 15 cm
when you register a custom_sort, you have 5 parameters:
function custom_sort(firstValue, secondValue, order, rowOfFirstValue, rowOfSecondValue).
The firstValue and SecondValue are the raw content of the cell (i.e. the text along with some HTML in my case).
Since my values are numerics, I would like to sort them by a numerical fashion (for example, by ascending/descending order of mean values).
I want to be able to have the rowId and the colId of the cells behind the firstValue and secondValue so that I can reach the real numerical values. Is that currently possible?
Thanks for your time.