internet explorer - How do I refresh a table in GWT without giving it focus? -


I am using Google Web Toolkit (GWT) 2.1.

I have a GWT grid (which is just an HTML table, in fact) that I am using for data entry. When you click on some elements outside the grid, it changes the content within the grid. I want to add / remove CSS styles to hide some rows in the grid based on the selected outside the grid. The style I am adding and removing is like this:

 . Thegrid .hiderow, .thegrid .hiderow div, .thegrid .hiderow td, .thegrid .hiderow *, .thegrid .hiderow input {do not display anything; Hidden flurry; Height: 0; }   

To do this I had to make IE6 properly hide the rows. Everything is fine, (surprise, surprise) except in IE6. In IE6, the rows are hidden properly, but when I want to re-display the rows after removing the style, the table maintains a lower size, whose rows were hidden. When I give it a table focus by clicking on it, it changes the size of the table and shows me all the rows.

After the removal by me, is there a way to expand the table in the right size in IE6 by "Elements" style? I do not want to give the table focus because the focus should be on the element to be clicked outside of the table. Rather than using CSS to hide rows, you can set the line visibility using JavaScript as a workaround.

"post-text" itemprop = "text">

In GWT, it works like this:

  int row = ...; Grid Table = ...; If (EnableRow (line)) {table.getRowFormatter () SetVisible (line, true); } Else {table.getRowFormatter (). Setwub (line, false); }   

This translates a Javascript call to DOM. The notion that installing visibility through CSS would have the same effect, and we tested it in every browser except IE 6 and IE 7.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -