Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
225
Combo drop down in igGrid
posted

I have a combo drop down configured in a grid.

My requirement is that when the editor is opened that it display an empty value instead of the first item in the list. Is there a setting or easy way to to do this?

I don't like the solution that I have come up with which is adding a empty element to the data source that is bound to the combo.

Parents
No Data
Reply
  • 225
    Verified Answer
    Offline posted

    Found my own answer instead of using "mode:combo" change that setting to  "buttonType: dropdown",

     columnKey: "CategoryID",
                                editorType: 'combo',
                                required: true,
                                editorOptions: {
                                    buttonType: "dropdown",

                                     //mode: "dropdown",
                                    dropDownOnFocus : true,
                                     autoSelectFirstMatch : false,
                                     closeDropDownOnBlur: true,
                                    dataSource: northWindCategoriesJSON,
                                    textKey: "Name",
                                    valueKey: "ID"
                                }
                            }

Children