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

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현