EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: aswzen on November 09, 2015, 04:51:05 AM



Title: Disable a checkbox in datagrid row dynamically
Post by: aswzen on November 09, 2015, 04:51:05 AM
How to disable a checkbox in datagrid row dynamically through an javascript action?

see this fiddle:
http://jsfiddle.net/oo9dvb7x/

when i press the button then error comes up
Uncaught TypeError: Cannot read property 'dc' of undefined

Thank You  in advance




Title: Re: Disable a checkbox in datagrid row dynamically
Post by: stworthy on November 09, 2015, 08:12:36 AM
The code to get the <tr> element should be:
Code:
var dg = $('#BRAND_TABLE');
var opts = dg.datagrid('options');
var tr = opts.finder.getTr(dg[0], index);

Please look at this updated example http://jsfiddle.net/oo9dvb7x/1/


Title: Re: Disable a checkbox in datagrid row dynamically
Post by: aswzen on November 09, 2015, 06:38:11 PM
okay thankyou :)