Page 1 of 1

[ANGULAR] Are there any event listeners on key press , while editing a cell?

Posted: Thu Jan 20, 2022 12:02 pm
by abisht

Hi,
I am currently implementing an editable cell, with dropdown. This dropdown will have a list of drivers.

I am able to listen to startcelledit and beforefinishcelledit events. But I need to make a Backend call, on each keystore , so that Backend can give me filtered results.

Are there any input listeners supported on cell edit ?


Re: [ANGULAR] Are there any event listeners on key press , while editing a cell?

Posted: Thu Jan 20, 2022 1:25 pm
by alex.l

Yes, you should rely on API of a field you are using as an editor. In case of Combo, you can listen to https://bryntum.com/docs/grid/api/Core/widget/Combo#event-input

Something like:

    columns : [
      {
         text   : 'Task',
         field  : 'name'
      },
      {
         text   : 'Assigned to',
         field  : 'employeeId',
         editor : {
              type : 'combo',
              store : employeeStore,
              // specify valueField'/'displayField' to match the data format in the employeeStore store
              valueField : 'id',
              displayField : 'name',
              listeners : {
              	input : ({ source, value }) => {
              		// your code here
              	}
              }
          },

Re: [ANGULAR] Are there any event listeners on key press , while editing a cell?

Posted: Thu Jan 20, 2022 1:31 pm
by abisht

Thank you for the quick response. Just one more question. Is multi-select in dropdown, allowed in combo box ?


Re: [ANGULAR] Are there any event listeners on key press , while editing a cell?

Posted: Thu Jan 20, 2022 1:33 pm
by alex.l

Re: [ANGULAR] Are there any event listeners on key press , while editing a cell?

Posted: Thu Jan 20, 2022 5:51 pm
by abisht

Thank you for the support. It works :)