DISABLE ELEMENT of ONE DDL by selection of another one

I'm using dropdownlist for managing the schedule shift people in my association (red cross)


Usually a person can cover several roles.


For example: Alex can be "capo equipaggio" (shift chief - ddl A) or "autista" (driver - ddl B).


So our manager can see Alex in both ddls of the same shift


But when He select Alex (for example) for ddl A I wan to disable by code the selection of Alex for ddl B (and viceversa).


Is it possible?


I don't want to remove it (I want to disable) so the manager can swith the assignment as he wants.

If I remove Alex from datasource the manager don't remember that Alex is chief and driver at the same time.



Attachment: Cattura_b909cdd8.7z

2 Replies

AL Alex August 2, 2021 02:03 PM UTC

I solved the problem with other topic in this section, I'm sorry

const onUserOpen  = (e=> {
/ /my check code
e.popup.element.querySelectorAll('.e-list-item')[idx].classList.add('e-disabled');
 e.popup.element.querySelectorAll('.e-list-item')[idx].classList.add('e-overlay');
}


SP Sureshkumar P Syncfusion Team August 3, 2021 12:26 PM UTC

Hi Alex,  

Thanks for your update. we are glad that the issue is resolved, please let us know If you need any further assistance on this.  

Regards,  
Sureshkumar P

Loader.
Up arrow icon