EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 14, 2025, 02:01:18 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
change cell style on Click Cell
Pages: [
1
]
« previous
next »
Print
Author
Topic: change cell style on Click Cell (Read 11697 times)
iskandarkbr
Newbie
Posts: 36
change cell style on Click Cell
«
on:
March 24, 2015, 09:01:54 PM »
can we change cell style after we clicked it?
Logged
Opan Mustopah
Full Member
Posts: 164
Indonesia
Re: change cell style on Click Cell
«
Reply #1 on:
March 25, 2015, 06:06:46 AM »
did you already try onClickCell event to manipulation datagrid cell style??
Logged
-- Bajak Otak --
*** Sorry for my bad english :3 ***
--JeasyUI version 1.4--
iskandarkbr
Newbie
Posts: 36
Re: change cell style on Click Cell
«
Reply #2 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
Logged
chrwei
Full Member
Posts: 219
Re: change cell style on Click Cell
«
Reply #3 on:
March 26, 2015, 11:19:28 AM »
there is a div inside the td, apply the style to that
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...