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
300
Exit cell and fire event
posted

I need to exit a cell and fire some kind of event. From what I have tested and read the editCellEnding and editCellEnded only fires when the row editing has ended. This will not work because I need to populate other cells based on the value of a cell after exit.

Is this possible?

Parents
  • 23953
    Offline posted

    Hello Donnie,

    I assume you're using editMode: 'row'. igGridUpdating uses igEditor instances when in edit mode to edit the grid cells. You can bind to igEditor events by using the editor options in the updating columnSettings like this:

    {

        name: "Updating",

       editMode: "row",

       columnSettings: [

       {

          columnKey: "Name",

          editorOptions: {

             blur: function (evt, ui) {

                console.log("blur event fired");

             }

          }

       }

       ]

    }

    The best way to edit other cell value is to use its editor. To get the other cell editor use the igGridUpdating.editorForKey API method. The  Editing Combo Editor sample demonstrates this.

    Note: This method is not applicable when the editMode: 'cell'. In this mode only one editor is shown at a time.

    Hope this helps,
    Martin Pavlov
    Infragistics, Inc.

Reply Children