jQWidgets Forums

jQuery UI Widgets Forums General Discussions Lists DropDownList Changing Checkbox-Style and Select-Style

This topic contains 1 reply, has 1 voice, and was last updated by  parascus 11 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • parascus
    Participant

    Hello jqWidgets-Team,

    I have a dropdownlist which is filled with items. Now I want to change the style of the dropdownlist from checkbox: true to checkbox:false and also the other way. Doing this I get the Message: TypeError: e[0].firstChild.firstChild is null. Is it not possible to change this property while the dropdowncombo is already populated? If so can I use the clear method to empty the dropdownlist, change the style and repopulate it again?

    Best regards

    Stephan


    parascus
    Participant

    Hello jqWidgets-Team,

    sorry for bothering. I tried to solve the problem by clearing the source and it’s working:

    var source = $('#jqxDropDownList').jqxDropDownList( 'source');
    $('#jqxDropDownList').jqxDropDownList( 'clear');
    $('#jqxDropDownList').jqxDropDownList( 'checkboxes', true); // or false
    $('#jqxDropDownList').jqxDropDownList( 'source', source);
    

    Have a nice weekend

    Stephan

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

You must be logged in to reply to this topic.