Results 1 to 2 of 2

Thread: how to refresh combobox value after store load

  1. #1
    Sencha User
    Join Date
    Dec 2015
    Posts
    117
    Answers
    12

    Default how to refresh combobox value after store load

    I have a drop down with { text, value } objects. I only receive value from the server when I load the form.
    The drop down itself is a remote store, so it may finish loading after the form load.
    In this case, value is displayed instead of text. Once the drop down store is loaded, I want to refresh the combobox to show the corresponding text.
    How do we do this?

    Thanks,

  2. #2
    Sencha User
    Join Date
    Oct 2018
    Location
    Noida
    Posts
    52
    Answers
    10

    Default

    Normally dropdown should show display value once store is loaded, but you can bind load event on dropdown's store. there you can get its value, then set the value to null and again set the value back to original value. It will kind of refresh the value of dropdown.
    Or try to check assertValue​ function in combobox class

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •