How to set placeholder in autocomplete?

Posted by: venkateshpallanti on 20 December 2017, 3:44 pm EST

    • Post Options:
    • Link

    Posted 20 December 2017, 3:44 pm EST

    I am using code like this but instead of placeholder it shows first value in autocomplete

    ```



  • Posted 21 December 2017, 4:26 pm EST

    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