jQWidgets Forums

jQuery UI Widgets Forums Lists DropDownList set dropdownlist value based on valueMemeber

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

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

  • muthu
    Participant

    Hi,

    i’ve created dropdownlist like below,

    $(“#abc”).jqxDropDownList({source: getaccessType, width: ‘233px’, height: ’25px’,displayMember: ‘label’,valueMember: ‘value’ });

    And, i want to set value to dropdownlist based on valueMember.

    now i’m doing like “$(“#EditAcqSrcaccessType”).jqxDropDownList(‘selectIndex’, vals);” like this.

    i want to set the value to dropdowlist based on valueMemeber.

    Pls help me.

    Thanks,
    Muthu


    ivailo
    Participant

    Hi muthu,

    Use $("#EditAcqSrcaccessType").jqxDropDownList('selectItem', vals);.

    selectItem selects your items by value.

    Look at this fiddle.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com


    muthu
    Participant

    Hi,

    Thank you very much..

    i’ll check it and let you know.

    -Muthu


    muthu
    Participant

    Hi,

    I my code it is not working …

    my code is ..

    in cell renderer i’ve written

    <input type=’image’ title=’Edit AcquiredSource’ src=’images/edit2.png’ onClick=’editdAcqSrcviaAgreement(“+row+”)’ class=’add_button’ style=’float:right;margin-right:7px;’>

    and i’m calling the below function to set value to dropdownlist ..
    but not working..

    function editdAcqSrcviaAgreement(row){
    $(“#EditAcqSrcaccessType”).jqxDropDownList(‘selectItem’, row);
    }

    Thanks,
    Muthu


    ivailo
    Participant

    Hi Muthu,

    Send a fiddle with the whole code for better vizualization of the problem.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.