Welcome Guest Search | Active Topics | Sign In | Register

Hiding rows eo:web grid Options
mike
Posted: Monday, July 1, 2013 3:28:41 AM
Rank: Member
Groups: Member

Joined: 5/15/2012
Posts: 18
Hi

I need to hide specific rows at runtime. I have tried setting the grid.Items(i).StyleSetID = "StyleSet1" where styleset1 has visibility = collapse

<eo:GridItemStyleSet StyleSetID="StyleSet1">
<ItemStyle CssText="background-color:white;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none; visibility: collapse;" />
<AlternatingItemStyle CssText="background-color:#FFFFFF; visibility: collapse;" />
<ItemHoverStyle CssText="" />
<SelectedStyle CssText="color:#3333ff;" />
<FixedColumnCellStyle CssText="visibility: collapse" />
<CellStyle CssText="padding-left:0px; padding-top:0px; color:#FFFFFF; white-space:nowrap; visibility: collapse;" />
</eo:GridItemStyleSet>

When it renders the row(s) is blank but it does not collapse the space, so there is a gap between the visible rows and the collapsed row. What can I do about this?
eo_support
Posted: Monday, July 1, 2013 8:41:36 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

That won't work. But I believe you can set GridItem.Deleted to true to hide an item.

Thanks!
mike
Posted: Monday, July 1, 2013 9:28:53 AM
Rank: Member
Groups: Member

Joined: 5/15/2012
Posts: 18
thanks that worked


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.