jQWidgets Forums

jQuery UI Widgets Forums Lists DropDownList Displayed selection value when checkboxes are enabled can be misleading

This topic contains 3 replies, has 3 voices, and was last updated by  Peter Stoev 12 years, 7 months ago.

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

  • Marc
    Participant

    The DropDownList selection box always presents the last ‘selected’ item. In the context of checkboxes, this results in misleading results, as this leads to unchecking a checkbox resulting in the label for the unchecked item being displayed. For instance, in the DropDownList checkbox demo check Anna and Hanna and then uncheck Anna and close the list. The selection box will contain ‘Anna’ although the only checked entry in the list is Hanna.

    In this case, something like a comma-joined list of the checked items would seem like a more reasonable default. It would also be nice to have a custom selection renderer called on checkChange in which the current checked/unchecked item would be available (along with being able to get the list of all checked items from the API). I attempted to implement something along the lines of the comma-separated list, but selectionRenderer is not called if the same item is checked and unchecked in succession (since the selected item doesn’t change).

    On a related note, it would be nice to be able to define the value displayed in the selection box when no item is selected (or checked). I believe it is currently blank in this case and it would be useful to be able to display a prompt message. With checkboxes enabled, using the first item in the list for the prompt value results in having a checkbox next to the prompt which is undesirable.

    Also, the ‘checkChange’ event is used in the demo but is not documented on the API page.

    Marc


    Peter Stoev
    Keymaster

    Hi Marc,

    Thank you for your post. We’ll consider enhancing the DropDownList’s behavior in the future versions.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    slodge
    Member

    +1 for this suggestion – a comma separated list would be most helpful


    Peter Stoev
    Keymaster

    Hi slodge,

    We do not have plans to add a comma separated list for jqxDropDownList. It does not have enough space to display a whole list. Such feature will be better to be available in a widget like jqxComboBox.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.