Popup Editor not working with AutoComplete

Posted by: muhammad.f.mehboob on 4 April 2020, 5:36 pm EST

  • Posted 4 April 2020, 5:36 pm EST

    Hi Team,

    I am trying to implement the following demo in my application. Everything works fine except when I try to bind the value to wj-auto-complete input element it doesn't work.


    Here is my wijmo AutoComplete code.

    <wj-auto-complete #cboName

    In my popup editor code, I am trying to assign the selected email value to wj-auto-complete input element. I want that when I click on pencil icon on my flexGrid it should display the value from the grid to the popup editor.

    // prepare form
    this.editingItem = flex.rows[ht.row].dataItem;
    this.cboCountry.selectedItem = this.editingItem.country;
    this.numberSales.value = this.editingItem.sales;
    this.numberExpenses.value = this.editingItem.expenses;
    this.cboName.selectedValue = this.editingItem.email;

    It works fine when I first time click on the pencil icon. It displays everything correctly. But when I try to edit some other row, it just keep displaying the old data (i.e. it displays the old email id from the previous selected row).

    Any help would be highly appreciated.
  • Replied 5 April 2020, 4:38 pm EST


    Can you please confirm whether you have updated the selected cell's value in the result callback of the Popup:
    this.popup.show(true, (s: wjcInput.Popup) => {
    if (s.dialogResult == "wj-hide-ok") {
    // commit changes if the user pressed the OK button
    this.editingItem.country = this.cboCountry.selectedValue;
    this.editingItem.sales = this.numberSales.value;
    this.editingItem.expenses = this.numberExpenses.value;
    this.editingItem.email = this.cboName.selectedValue;
    // return focus to the grid

    Refer to the sample link below for reference:


    In this sample, the country column uses AutoComplete.

  • Replied 9 April 2020, 6:44 am EST

    Hi Ashwin,

    Thanks for your response. Also, how do I do the same with wj-multi-auto-complete ?

  • Replied 12 April 2020, 6:23 pm EST


    If you wish to use MultiAutoComplete, you can use the selectedItems property to bind the values of MultiAutoComplete to the column in FlexGrid:
    this.editingItem.email = this.cboEmail.selectedItems; // email should be bound to an array

Need extra support?

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

Learn More

Forum Channels