Hello,

And here I am starting with my first blog.

Many developers face troubles while working with UI grid and form in the admin. Customizing Magento 2 admin with UI components is quite interesting and tricky too, I faced many issues while working with UI components and I dug into it.

I am sharing the steps for changing the grid data on ajax call based on selected values inside the admin form.

Note: The dropdown and the grid are separate fields in the admin form.

the grid is added inside the admin form using the InsertListing component

https://devdocs.magento.com/guides/v2.4/ui_comp_guide/components/ui-insertlisting.html

refer below Screenshot for…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store