jQWidgets Forums

jQuery UI Widgets Forums Lists ComboBox enableSelection

This topic contains 2 replies, has 2 voices, and was last updated by  raoul 11 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • enableSelection #49319

    raoul
    Participant

    Hi,

    I have a combobox and dataAdapter. What I like to do is show a message as a single combobox item when there are too many search results and disable the selection.

    
    renderer: function (index, label, value) {
    var item = dataAdapter.records[index];
    if (item != null) {
     var label = item.name
    		
    if(item.id == -1){ 
    		// too many search results
    $("#jqxcombobox").jqxComboBox({enableSelection:false}); 
    }else{
    $("#jqxcombobox").jqxComboBox({enableSelection:true});
    }
    						
    return label;
                        }
    return "";
    }
    

    This doesn’t seem to work. How should I implement this?

    Thanks,
    Raoul

    enableSelection #49325

    Peter Stoev
    Keymaster

    Hi Raoul,

    The selection cannot be dynamically set in this version. We’ll make sure to add support about that in the next version.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    enableSelection #49456

    raoul
    Participant

    Ah ok, yes, it would be nice to be able to do that

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.