refreshRenderer() |
It refreshes the renderer object (which has the handle of the HTML component) with the latest dataset from the model.
Syntax
Script |
viewID.refreshRenderer(iLocator) |
Parameters
Parameter |
Description |
---|---|
iLocator |
Optional. Integer that denotes the record set position at which the cursor is to be placed after refresh. Once cursor is placed, that record will be shown to the user. |
Return Value
No value is returned.
Remarks
This method can be used to refresh the view based on the position of its cursor.
Example
This sample code demonstrates how the method can be used.
//Get data from some other model var view = newModel.views[0]; //Refresh the component as well while setting data view.refreshRenderer(3);