Skip to content
This repository was archived by the owner on Apr 21, 2024. It is now read-only.

solved multiselect default value set problem.#19

Open
MelihSevsay wants to merge 1 commit intocruikshj:masterfrom
MelihSevsay:development
Open

solved multiselect default value set problem.#19
MelihSevsay wants to merge 1 commit intocruikshj:masterfrom
MelihSevsay:development

Conversation

@MelihSevsay
Copy link
Copy Markdown

by this modification we are able to set to select2 multiselect default value.To make it work we need to put our sample data in spes: {data:[{'id':0,'text':'White'}]} and selectedOptions = ko.observableArray(['1','2']); selectedOptions must contain id arraylist. Also added sample to index.html. to fix #17

… are able to set to select2 multiselect default value.To make it work we need to put our sample data in spes: {data:[{'id':0,'text':'White'}]} and selectedOptions = ko.observableArray(['1','2']); selectedOptions must contain id arraylist. Also added sample to index.html. to fix cruikshj#17
@MelihSevsay
Copy link
Copy Markdown
Author

i have send pull request but it seems travis faild to merge it. is it my code ? @cruikshj

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

observable value could not set to multiselect select2 as selected at initial load

1 participant