We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to set value to other Dropdownlist in one row when select a Dropdownlist

hi everyone,

I'm using Grid component and I have a need is set value for dropdown2 when select dropdown1. but i couldn't do it


this is data 

Is there any way to solve it?

Thanks.


1 Reply

HK Harini Kannan Syncfusion Team March 20, 2023 03:26 PM UTC

Hi Manh Kien,


Greetings from Syncfusion support.


Query: How to set value to other Dropdown list in one row when select a Dropdown list


With the help of this documentation, we can assign a value to the "shipDate" field in the same row as the "shipCountry" field when selecting an option from the latter dropdown list. This can be achieved by generating an ID for the "shipCountry" field and then assigning the corresponding value to the "shipDate" field.


Documentation link : https://ej2.syncfusion.com/react/documentation/grid/how-to/cascading-drop-down-list-with-grid-editing?_gl=1*1lv29dv*_ga*MTA1MjIxMTAxMy4xNjc5Mjg2Njk4*_ga_WC4JKKPHH0*MTY3OTI5MjI5My4xLjEuMTY3OTI5MjMwMC41My4wLjA.&_ga=2.95534612.949069295.1679292285-1052211013.1679286698


Sample : https://stackblitz.com/edit/react-tpb2tq-33nvnv?file=index.js


Please get back to us if you have any concern.


Regards,

Harini


Loader.
Up arrow icon