Page 1 of 1

[ANGULAR] ResourceTab.grid.NumberColumn max per record

Posted: Tue Apr 13, 2021 1:01 pm
by attila.posta

Hi,

I'd like to set the max value on NumberColumns based on the selected resource in ResourceTab's grid. For example, If the added resource is Resource1, then units' max value is 50, otherwise its 100. Is it possible?

thanks,
Norbi


Re: [ANGULAR] ResourceTab.grid.NumberColumn max per record

Posted: Tue Apr 13, 2021 1:05 pm
by mats

Sure, easy. Listen to https://bryntum.com/docs/grid/#Grid/feature/CellEdit#event-beforeCellEditStart and reconfigure the editor as you want there.


Re: [ANGULAR] ResourceTab.grid.NumberColumn max per record

Posted: Tue Apr 13, 2021 2:24 pm
by attila.posta

thank you, its working.