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
55
Getting value of combo box on blur during edit mode in igGrid.
posted

I have a combo box in my grid. I want to get the selected value of it on blur during edit mode. I want to pass it to my web service and based on some logic populate the text box beside it with a value. How can I accomplish this? Thank you.

Parents
No Data
Reply
  • 15320
    Suggested Answer
    Offline posted

    Hello Omer,

    I've made a sample that demonstrates column with combo editor and another column with template input text field. Using 'editCellEnded' event I'm checking if the current column that is in edit mode equals the one that contains the combo editor and based on that I'm assigning the selected combo editor value to the input field, for instance:

    editCellEnded: function (evt, ui) {
                                var testColInput = $(".inputTextBox")[ui.rowID];
                                if (ui.columnKey == "Name") {
                                    testColInput.value = ui.value;
                                }
                            }

    Attached is a sample for your reference.

    Please let me know if you have further questions.

    Regards,

    Tsanna

    gettingValueOfCombo.zip
Children
No Data