ScreenI need to convert value received by the server (bytes to MB). Only option I have is to embed script tag and run the jquery function that converts that value. Problem is that inline script doesn't return any value to html.
function formatFileSize(bytes) {
if (bytes == 0) return '0 Byte';
return (bytes / Math.pow(1024, 2)).toFixed(2);
}
Html code
<td>
<script>
formatFileSize(DailyUsage.UsageVolume)
</script>
</td>