Hello all,
I have a grid that I list all the folder and the size of the folder, I have java script code that transform a size of the folder accordingly. So a folder size can be 8 MB, 1 Gig, 400 KB, etc. Obviously, this is a text field so we can give the user the correct information and the unit we measure the size of the folder. Sorting does not work correctly since it is text.
Is there a way to say for this column if you are going to sort this text column using the raw size field (or specify a specific column to use for sorting). Meaning I have a second column in my model that has the raw size as int and I would like to use for sorting this way, 8 MB will come before 1 Gig folder.
Is there a way to do this? if so can you provide a simple example please.
I have a grid that I list all the folder and the size of the folder, I have java script code that transform a size of the folder accordingly. So a folder size can be 8 MB, 1 Gig, 400 KB, etc. Obviously, this is a text field so we can give the user the correct information and the unit we measure the size of the folder. Sorting does not work correctly since it is text.
Is there a way to say for this column if you are going to sort this text column using the raw size field (or specify a specific column to use for sorting). Meaning I have a second column in my model that has the raw size as int and I would like to use for sorting this way, 8 MB will come before 1 Gig folder.
Is there a way to do this? if so can you provide a simple example please.