Welcome Guest Search | Active Topics | Sign In | Register

Grid button style Options
Mirage
Posted: Monday, July 23, 2012 11:55:22 AM
Rank: Member
Groups: Member

Joined: 10/20/2011
Posts: 12

I set the button column style to pre-wrap and overflow=visible, it works fine when it displays the button first time, but it loses them when the button is clicked or any other button cell is clicked.

I have set the same settings for "selected item: and "edititem".

What else needs to be set ?
eo_support
Posted: Monday, July 23, 2012 12:55:13 PM
Rank: Administration
Groups: Administration

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

Can you post the code that you use to set the style?

Thanks!
Mirage
Posted: Monday, July 23, 2012 3:21:09 PM
Rank: Member
Groups: Member

Joined: 10/20/2011
Posts: 12
<eo:grid ID="Grid" runat="server" BorderColor="#989586" BorderWidth="1px"
ClientSideOnItemSelected="" ColumnHeaderAscImage="00050204"
ColumnHeaderDescImage="00050205" ColumnHeaderDividerImage="00050203"
ColumnHeaderHeight="24" FixedColumnCount="1" Font-Bold="False"
Font-Italic="False" Font-Names="Tahoma" Font-Overline="False"
Font-Size="8.75pt" Font-Strikeout="False" Font-Underline="False"
GridLineColor="240, 240, 240" GridLines="Both" Height="391px" ItemHeight="150"
RunningMode="Server" Width="100%" ImageBaseDirectory="~/Image"
ClientSideOnCellSelected="">
<ItemStyles>
<eo:griditemstyleset>
<ItemStyle CssText="background-color:white; vertical-align: middle; text-align: center; white-space: pre-wrap; overflow: visible;" />
<ItemHoverStyle CssText="white-space: pre-wrap; overflow: visible" />
<SelectedStyle CssText="background-repeat:no-repeat; vertical-align: middle; text-align: center; white-space: pre-wrap; overflow: visible;" />
<EditSelectedStyle CssText="background-color:#e6e1d0;text-align:center;vertical-align:middle; white-space: pre-wrap; overflow: visible;" />
<CellStyle CssText="padding-left:8px;padding-top:2px;white-space:pre-wrap; overflow: visible;" />
</eo:GridItemStyleSet>
</ItemStyles>
<ColumnHeaderStyle CssText="background-image:url('00050201');padding-left:8px;padding-top:4px;" />
<ColumnHeaderHoverStyle CssText="background-image:url('00050202');padding-left:8px;padding-top:4px;" />
<Columns>
<eo:ButtonColumn>
<ButtonStyle CssText="overflow: visible; white-space: pre-wrap;" />
<CellStyle CssText="vertical-align: middle; text-align: center; white-space: pre-wrap;" />
</eo:ButtonColumn>
</Columns>
<ColumnTemplates>
<eo:textboxcolumn>
<TextBoxStyle CssText="BORDER-RIGHT: #7f9db9 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7f9db9 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 8.75pt; PADDING-BOTTOM: 1px; MARGIN: 0px; BORDER-LEFT: #7f9db9 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #7f9db9 1px solid; FONT-FAMILY: Tahoma" />
<CellStyle CssText="overflow: visible; white-space: pre-wrap" />
</eo:TextBoxColumn>
<eo:datetimecolumn>

</eo:DateTimeColumn>
<eo:maskededitcolumn>

</eo:MaskedEditColumn>
</ColumnTemplates>
<FooterStyle CssText="padding-bottom:4px;padding-left:4px;padding-right:4px;padding-top:4px;" />
</eo:Grid>
eo_support
Posted: Monday, July 23, 2012 4:52:48 PM
Rank: Administration
Groups: Administration

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

We tested that and it seems to be working fine. Can you post a full test page along with pictures on how it loses the style? If you have the page online, we can also try that online first to see if we can find anything.

Thanks!
Mirage
Posted: Monday, July 23, 2012 5:12:59 PM
Rank: Member
Groups: Member

Joined: 10/20/2011
Posts: 12


It looses the style on post back.
eo_support
Posted: Monday, July 23, 2012 5:20:40 PM
Rank: Administration
Groups: Administration

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

We tested that and it works fine. There is a different post regarding a similar problem here:

http://www.essentialobjects.com/forum/postst6882_Grid-not-keeping-style-of-ButtonColumn-and-How-to-colour-cells-dependent-on-row-and-column-value.aspx

The difference between that post and your post is that post created the GridColumn dynamically and we can reproduce that problem. However in your code when everything is set statically in .aspx file, we were not able to reproduce the problem. That's why we need to you to produce a test page so that we can duplicate the problem first.

Thanks!
Mirage
Posted: Monday, July 23, 2012 5:53:12 PM
Rank: Member
Groups: Member

Joined: 10/20/2011
Posts: 12

I beleive it is the same problem. I also add the button column dynamically and set it's style:

.ButtonStyle.CssText = "vertical-align: middle; text-align: center; white-space: pre-wrap; overflow: visible"

Seams like The static Item style does not apply to the button column.
eo_support
Posted: Monday, July 23, 2012 5:56:26 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
OK. We are still working on that one and will rely when we have an update.

Thanks!
eo_support
Posted: Tuesday, July 24, 2012 12:46:18 PM
Rank: Administration
Groups: Administration

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

We have posted a new build that may fix the problem for you. Please see your private message for the download location.

Thanks!
Mirage
Posted: Wednesday, July 25, 2012 8:55:32 PM
Rank: Member
Groups: Member

Joined: 10/20/2011
Posts: 12
I replied to the message with the error generated.


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.