onDetailView Populate Javascript

Description

Specify the JavaScript to execute before the Detail View is populated.

Discussion

You can use this event to format data from the List before it is displayed in the Detail View. Your JavaScript must 'return' the value to be used to populate the Detail View control. You can get the value that the Detail View control will be populated with by referring to:

this._value

For example, your code might end with:

return this._value.toUpperCase();

Your code can access the 'this' context to get a pointer to the List object. For example, to get an object with the data in the current row:

this.getData(this.selection[0])