Autocomplete placeholder issue

Posted by: venkateshpallanti on 21 December 2017, 12:41 am EST

    • Post Options:
    • Link

    Posted 21 December 2017, 12:41 am EST

    How to set autocomplete placeholder im using this way

    <wj-auto-complete items-source="categoryData"
                                         selected-value-path="categoryId"
                                         display-member-path="categoryNm"
                                         selected-index="-1"
                                         is-editable="true"
                                         placeholder="Select"
                                         ng-model="searchCategoryId"
                                         class="form-control input-sm">
                       </wj-auto-complete>
    

    but autocomplete shows first value bydefault,but i want to show placeholder instead of value,…

  • Posted 22 December 2017, 1:29 am EST

    Hi ,

    The same issue has been discussed on the following forum thread:

    https://www.grapecity.com/en/forums/wijmo/how-to-set-placeholder-in-#hi-probably-you-are-using-

    We are copying the reply here too:

    Hi,

    Probably, you are using service to get data from server, as the data assigned to itemsSource, selectedIndex set to 0 and update ngModel too. Hence, to set Control selectedValue to null, we need to set ngModel value to null after loading data to ComboBox.

    Please refer to the fiddle for the same:

    http://jsfiddle.net/mkgupta911/e0nka1sx/35/

    ~Manish

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels