Prime NG multi select init value cannot see check box selectedChecbox not checked in PrimeHow to enable shift key - multi selection in prime ng pick list?How to get the text name of selected dropdown valueHow to disable a specific value in suggestions to be selected in PrimeNG autocomplete?Jasmine Unit Test for Prime Ng multi-selectp-autoComplete Pre-select a default valueHow to set by default selected values in PrimeNg MultiSelect with Angular 4 Reactive Form?Primeng - How to add a button inside the header of a multi-select/dropdown?Primeng multi select is not detecting changing value
Antivirus for Ubuntu 18.04
How can I finally understand the confusing modal verb "мочь"?
What's the 2-minute timer on mobile Deutsche Bahn tickets?
Can an earth elemental drag a tiny creature underground with Earth Glide?
Why doesn't a particle exert force on itself?
In "Avengers: Endgame", what does this name refer to?
All of my Firefox add-ons been disabled suddenly, how can I re-enable them?
Can I combine SELECT TOP() with the IN operator?
What does the coin flipping before dying mean?
What is more safe for browsing the web: PC or smartphone?
Copper as an adjective to refer to something made of copper
Problem with estimating a sequence with intuition
Is there a reason why Turkey took the Balkan territories of the Ottoman Empire, instead of Greece or another of the Balkan states?
How to use awk to extract data from a file based on the content of another file?
Summer '19 Sandbox error: String index out of range: 0: Source
How to replace space with '+' symbol in a triangular array?
Two denim hijabs
GitLab account hacked and repo wiped
How important are good looking people in a novel/story?
What detail can Hubble see on Mars?
What does the phrase "go for the pin" mean here?
How long does it take a postcard to get from USA to Germany?
How is Pauli's exclusion principle still valid in these cases?
Endgame puzzle: How to avoid stalemate and win?
Prime NG multi select init value cannot see check box selected
Checbox not checked in PrimeHow to enable shift key - multi selection in prime ng pick list?How to get the text name of selected dropdown valueHow to disable a specific value in suggestions to be selected in PrimeNG autocomplete?Jasmine Unit Test for Prime Ng multi-selectp-autoComplete Pre-select a default valueHow to set by default selected values in PrimeNg MultiSelect with Angular 4 Reactive Form?Primeng - How to add a button inside the header of a multi-select/dropdown?Primeng multi select is not detecting changing value
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Prime NG multi select init value cannot see check box selected
init method
this.cities = [
label: 'New York', value: 'NY',
label: 'Rome', value: 'RM',
label: 'London', value: 'LDN',
label: 'Istanbul', value: 'IST',
label: 'Paris', value: 'PRS'];
let selectedT: Country[];
selectedT = [label: "Rome", value: "RM"];
this.dForm.controls["selectedCities"].setValue([label: "Rome", value: "RM"]);
primeng primeng-dropdowns
add a comment |
Prime NG multi select init value cannot see check box selected
init method
this.cities = [
label: 'New York', value: 'NY',
label: 'Rome', value: 'RM',
label: 'London', value: 'LDN',
label: 'Istanbul', value: 'IST',
label: 'Paris', value: 'PRS'];
let selectedT: Country[];
selectedT = [label: "Rome", value: "RM"];
this.dForm.controls["selectedCities"].setValue([label: "Rome", value: "RM"]);
primeng primeng-dropdowns
add a comment |
Prime NG multi select init value cannot see check box selected
init method
this.cities = [
label: 'New York', value: 'NY',
label: 'Rome', value: 'RM',
label: 'London', value: 'LDN',
label: 'Istanbul', value: 'IST',
label: 'Paris', value: 'PRS'];
let selectedT: Country[];
selectedT = [label: "Rome", value: "RM"];
this.dForm.controls["selectedCities"].setValue([label: "Rome", value: "RM"]);
primeng primeng-dropdowns
Prime NG multi select init value cannot see check box selected
init method
this.cities = [
label: 'New York', value: 'NY',
label: 'Rome', value: 'RM',
label: 'London', value: 'LDN',
label: 'Istanbul', value: 'IST',
label: 'Paris', value: 'PRS'];
let selectedT: Country[];
selectedT = [label: "Rome", value: "RM"];
this.dForm.controls["selectedCities"].setValue([label: "Rome", value: "RM"]);
primeng primeng-dropdowns
primeng primeng-dropdowns
asked Mar 22 at 14:26
SSSSSSSS
327
327
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
No need to pass the whole object to "selectedCities" Array. Pass the only value to an array.
selectedT = ["RM"];
this.dForm.controls["selectedCities"].setValue(["RM"]);
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55301781%2fprime-ng-multi-select-init-value-cannot-see-check-box-selected%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
No need to pass the whole object to "selectedCities" Array. Pass the only value to an array.
selectedT = ["RM"];
this.dForm.controls["selectedCities"].setValue(["RM"]);
add a comment |
No need to pass the whole object to "selectedCities" Array. Pass the only value to an array.
selectedT = ["RM"];
this.dForm.controls["selectedCities"].setValue(["RM"]);
add a comment |
No need to pass the whole object to "selectedCities" Array. Pass the only value to an array.
selectedT = ["RM"];
this.dForm.controls["selectedCities"].setValue(["RM"]);
No need to pass the whole object to "selectedCities" Array. Pass the only value to an array.
selectedT = ["RM"];
this.dForm.controls["selectedCities"].setValue(["RM"]);
answered Mar 23 at 4:17
Zarna BordaZarna Borda
527120
527120
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55301781%2fprime-ng-multi-select-init-value-cannot-see-check-box-selected%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown