EasyUI Forum
April 28, 2024, 11:24:54 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Datagrid GridColumn cellCss style always rendering on mouse over  (Read 4851 times)
kifni41
Newbie
*
Posts: 23


View Profile
« on: August 20, 2020, 11:30:54 PM »

i make custom style on datagridcolumn like this

Code:
 
 <GridColumn key={'fk'} field={something}  width={36} filterable={false}
             hcellCss={this.styleHeader(value)}
             cellCss={this.styleCell.bind(this)} align="center"
   ></GridColumn>

and i put console
Code:
styleCell(row,value) {
  console.log('here......')
}

this styleCell always rendering whenever mouse moving in datagrid,
I think this affect performance so much,
can I shut down the rendering when mouse moving?
user scrolling when mouse is moving some time, lag when scrol
« Last Edit: August 20, 2020, 11:52:47 PM by kifni41 » Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: August 21, 2020, 12:59:31 AM »

Don't worry about that. React will re-render the DataGrid when enter or leave a cell. Although the virtual DOM is rendered, the real DOM doesn't. The responding speed is quick.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!