jQWidgets Forums

jQuery UI Widgets Forums Lists DropDownList getItemByValue method can't work

Tagged: 

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • getItemByValue method can't work #17474

    teguh
    Member

    Hi,

    I have created dropdown inside jqxwindow. I initialized the jqxdropdown to select value with certain value from database. There was no problem with ‘getItem’ method or any method that use index, but i got problem with ‘getItemByValue’ method. Below is my code:

    var businessUnitList = { datatype: 'json', datafields: [ { name: 'id'}, { name: 'name'} ],	url: 'remote.cfc?method=getBusinessUnit' };
    var dABusinessUnit = new $.jqx.dataAdapter(businessUnitList, { async: false, autoBind: true });
    $("#businessUnitDDlist").jqxDropDownList({ source: dABusinessUnit, promptText: "Pilih Suku Usaha: ", displayMember:'name', valueMember: 'name', width: '350px', height: '25px' });
    var itmx = $("#businessUnitDDlist").jqxDropDownList('getItemByValue','Wartakota');
    $("#businessUnitDDlist").jqxDropDownList('selectItem',itmx);

    thanks for any help.

    getItemByValue method can't work #17475

    Peter Stoev
    Keymaster

    Hi teguh,

    Thank you for the feedback.

    There is an issue with that method when the data source is a dataAdapter. The issue will be resolved in the next version.

    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.