简体   繁体   中英

how to remove a style from a previously selected row in a gwt grid

I want to remove a style from a previously selected row of a gwt DataGrid when clicked on a new row. Im able to do it by redrawing the grid, is it possible to do it without redrawing the grid.

You can do that with gwtquery , just capture the event and use gquery to select the element in the dom you want to modify using css3 selectors.

If you put some code with the place where you want to capture the action, and the dom structure of your grid, I could help with the snippet.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM