jQuery UI Widgets Forums Lists ComboBox Set Id

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Set Id Posts
  • Set Id #74255

    Artur
    Participant

    Hi , How can I set the id for each item combobox , to using it to set checkboxes via method “checkItem”. I use bind data via : var source =
    {
    datatype: “json”,
    datafields: [
    { name: ‘Category’ },
    ],
    id: ‘Id’,
    localdata: data
    };
    I think i can apply this id
    but apply this code $(“#jqxWidget”).jqxComboBox(‘checkItem’, $(‘#Id’)[i]) , it dosent work ?
    I could apply set checkboxes only by name , i would like by id .It is real ?

    Set Id #74257

    Peter Stoev
    Keymaster

    Hi Artur,

    You may look at the ComboBox API Documentation in order to learn how to use the checkItem method and what arguments it expects. It expects as argument the Item Object or the Item’s Value, not ID.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Set Id #74261

    Artur
    Participant

    Thanks Peter!

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

You must be logged in to reply to this topic.