简体   繁体   English

如何从gwt网格中的先前选择的行中删除样式

[英]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. 单击新行时,我想从gwt DataGrid的先前选择的行中删除样式。 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. 您可以使用gwtquery做到这一点 ,只需捕获事件并使用gquery在css3选择器中选择要修改的dom中的元素。

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. 如果您在要捕获动作的地方加上一些代码,以及网格的dom结构,则可以帮助您简化代码段。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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