Skip to content

Infragistics Community Forum / Web / Ignite UI for jQuery / Set a default value in igcombo dropdown

Set a default value in igcombo dropdown

New Discussion
Yui Chan
Yui Chan asked on Jun 20, 2018 1:16 PM

Selected items is not setting the value by default.

here is my code.

$(“#country”).igCombo({
width:300,
dataSource:country,
textKey:”Name”,
valueKey:”Name”,
multiSelection: {
enabled:true,
showCheckboxes:true
},
dropDownOrientation:”bottom”,
autoComplete:true,
selectedItems:”Albania”,
});
Sign In to post a reply

Replies

  • 0
    Hristo Popov
    Hristo Popov answered on Jun 20, 2018 1:16 PM

    Hello Yui Chan,

    Thank you for contacting us.

    I am sending you a link where I have made an  example on jsfiddle based on your requirement. There you can see how to set  items to be selected with initialSelectedItems option on combo initialization. In addition, you can initialize the combo with default selected items with the valueindex and select methods.

    Let me know if you have any further questions.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Yui Chan
Favorites
0
Replies
1
Created On
Jun 20, 2018
Last Post
8 years, 1 month ago

Suggested Discussions

Tags

Created by

Created on

Jun 20, 2018 1:16 PM

Last activity on

Feb 19, 2026 9:15 AM