jQWidgets Forums

jQuery UI Widgets Forums Lists DropDownList Dropdown list values display

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Dropdown list values display #29637

    Dundee
    Participant

    Hi,

    i have a jqxdropdownlist that contains a list of operation possibility on file…so when i load values for this dropdown..the text display in the dropdown square(without open it)…are abbreviated to a couple of letter…like operation “CMK mode” willl result in “CMK…”..but if a reselect any item….the displayed text will be not truncate..until the edge of the dropdownlist control.

    i set up value with that kind of code..

     var checkedItemOperations = properties.operationsList;
    for (var i = 0; i < checkedItemOperations.length; i++) {
    var item = $("#lbOperationProperties").jqxDropDownList('getItemByValue', checkedItemOperations[i]);
    if (item != null && item !== undefined) {
    $("#lbOperationProperties").jqxDropDownList('checkItem', item);
    }
    }

    i receveid a list of operation from ajax call before..and want to check every item in the operationlist variable…

    do i made something wrong?

    Dropdown list values display #29649

    Peter Stoev
    Keymaster

    Hi Dundee,

    The ‘selectionRenderer’ callback is called when the DropDownList’s content is rendered. You can use it to display any information in the widget’s content area. For more information about that callback function see: jquery-dropdownlist-api.htm.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.