DropDownList onChange event in grid

Hi,

I'm working on ej:grid.
I have a dropdownlist in grid.  When it's in edit and add mode, if I change the dropdownlist, I want aother column to be disabled in the same row.

I attach my sample solution.
If I change TaxCode to "Y", cost column should be enabled.
If I change TaxCode to "N", cost column should be disabled.

I just bind the dropdownlist data from code behind.
How can we achieve this?

Thank you in advance,
Yukiko


Attachment: dropTest_43d5a61b.7z

3 Replies

AS Alan Sangeeth S Syncfusion Team August 29, 2018 10:32 AM UTC

Hi Yukiko, 


Thanks for using Syncfusion products. 


By Using EditTemplate Feature in grid we can render any customized control in grid edit form. And hence you can bind change event to Grid dropdown and in change event handler you can update cost column status. 


Please find the following documentation for further reference 


In the above documentation we have rendered MaskEdit control and similarly you can render Dropdown control for TaxCode. Please refer the following documentation for further reference. 



Please let us know if you need further assistance on this. 


Regards, 
Alan Sangeeth S 



YI Yukiko Imazu August 29, 2018 05:40 PM UTC

Hi Alan Sangeeth,

Thank you for your support.

Regards,
Yukiko


AS Alan Sangeeth S Syncfusion Team August 30, 2018 05:38 AM UTC

Hi Yukiko, 

We are happy to assist you. 

Please get back to us if you have any concerns. 

Regards,
Alan Sangeeth S 


Loader.
Up arrow icon