If no data is passed the list is cleared.
function GetDeveloperList(clearList) { Proxy.callMethod('GetDeveloperList',[], function(result) { // Bind company and pk fields $("#lstCustomerList") .listSetData(result,{ dataTextField: "company", dataValueField: "pk"}); },onPageError); }
data
The data that is passed in in the form of a single item array, or an object array or a serialized table that has a Rows array.
If this value is null or not passed the list is cleared.
opt
Options that allow you to specify the dataTextField and dataValueField which should reference the JavaScript object properties.
Note a single item array will bind the single item as both value and text.