Anonymous
Hello,
n
n
No, I don’t think that setting can affect the grouped or the aggregate value. The body filed means the script will be invoked when rows are rendering in the front-end. For example, if you have five rows in qListView, the code in the body field will be called in every row rendering(5 times).
n
n
But on the other hand, because that code is running on the front-end, that give you a very flexible way to do your job. For your case, I think you do not need to set the body field, just add the script in the header filed for formatting the grouped/aggregated value. The script in the header will be run in one time. For example:
n
Results Header:
n
n
<script>
n
//get the field, the ‘$telerik.$’ is the jQuery object.
n
var theField = $telerik.$(‘…’);
n
//format it..
n
</script>
n
n
n
n