jQWidgets Forums

jQuery UI Widgets Forums Lists ComboBox ComboBox Text

This topic contains 3 replies, has 2 voices, and was last updated by  Dimitar 12 years ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • ComboBox Text #17299

    naatha
    Member

    Hello,

    I am using checkboxes with combo box items. When items checked, it will be displayed in the text field.

    Can I use that text field to display some fixed text, like “Hide/Show Columns…” instead of displaying checked items?

    Thanks

    ComboBox Text #17305

    Dimitar
    Participant

    Hello naatha,

    It is possible by using the renderSelectedItem callback function, i.e.:

                    $("#jqxWidget").jqxComboBox({ checkboxes: true, source: dataAdapter, displayMember: "ContactName", valueMember: "CompanyName", width: 200, height: 25, theme: theme,
    renderSelectedItem: function (index, item) {
    return "Hide/Show Columns…";
    }
    });

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    ComboBox Text #17315

    naatha
    Member

    Hi Dimitar,

    Thanks you for the reply. It only works after check any of the check box.

    Is there any way to display when open the web page?

    thanks

    ComboBox Text #17435

    Dimitar
    Participant

    Hi naatha,

    You can set the promptText property, i.e.:

                    $("#jqxWidget").jqxComboBox({ promptText: "Hide/Show Columns…" });

    Best Regards,
    Dimitar

    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.