Premium support for our pure JavaScript UI components


Post 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 ?


Post 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
              	}
              }
          },

All the best,
Alex


Post by abisht »

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


Post by alex.l »

All the best,
Alex


Post by abisht »

Thank you for the support. It works :)


Post Reply