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;








-1















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"]);














share|improve this question




























    -1















    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"]);














    share|improve this question
























      -1












      -1








      -1








      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"]);














      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 22 at 14:26









      SSSSSSSS

      327




      327






















          1 Answer
          1






          active

          oldest

          votes


















          0














          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"]);





          share|improve this answer























            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
            );



            );













            draft saved

            draft discarded


















            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









            0














            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"]);





            share|improve this answer



























              0














              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"]);





              share|improve this answer

























                0












                0








                0







                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"]);





                share|improve this answer













                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"]);






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 23 at 4:17









                Zarna BordaZarna Borda

                527120




                527120





























                    draft saved

                    draft discarded
















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript