Is it possible to disable radiobutton item based on selection on select component

I want to disable some items based on selection of another select component (see image). How to use itemEnabledProvider in this case or suggest any other approach.

Screenshot 2024-08-15 112557

Thanks

Hi,

The itemEnabledProvider is applied to each item to determine whether the item should be enabled (true) or disabled (false).

You can trigger it forcedly by calling radioButtonGroup.getDataProvider().refreshAll();

Regards,
Gleb