|
Title: change cell style on Click Cell Post by: iskandarkbr on March 24, 2015, 09:01:54 PM can we change cell style after we clicked it?
Title: Re: change cell style on Click Cell Post by: Opan Mustopah on March 25, 2015, 06:06:46 AM did you already try onClickCell event to manipulation datagrid cell style??
Title: Re: change cell style on Click Cell Post by: iskandarkbr on March 25, 2015, 07:42:37 PM i have this :
var dg=$(this); var dc = $(this).data('datagrid').dc; var body = dc.body1.add(dc.body2); body.unbind('click').bind('click',function(e){ var tr = $(e.target).closest('tr.datagrid-row'); var tt=$(e.target); var index = parseInt(tr.attr('datagrid-row-index')); var td=tt.closest("td[field]",tr); var field=td.attr("field"); ......................... ......................... }) i tried to insert addClass for td in it, but it doesnt restyle Title: Re: change cell style on Click Cell Post by: chrwei on March 26, 2015, 11:19:28 AM there is a div inside the td, apply the style to that
|