var value = obj.getSelectedItems(); obj.setSelectedItems(value); obj.onSelectedItemsChanging = function(value){...}; obj.onSelectedItemsChanged = function(value){...}; obj.onSelectedItemsError = function(value){...};