Okay that makes sense, but I can’t seem to get unbind to work. I set up a simple test:
$('#jqxListBox').unbind('select');
refreshMemberList();
$('#jqxListBox').jqxListBox('clearSelection', true);
$('#jqxListBox').bind('select', function (event) {
var args = event.args;
var item = $('#jqxListBox').jqxListBox('getItem', args.index);
if (item != null) {
showUserDetails(item.label);
$('#Events').jqxPanel('prepend', '
Selected: ' + item.label + '
');
$('#window').jqxWindow('show');;
}
});
When ran, the listbox repopulates, the first item is selected by default, but it never unselects.
refreshMemberList is an ajax function to repopulate the listbox from a php based sql query.