|
Rank: Member Groups: Member
Joined: 6/1/2011 Posts: 18
|
How do I set the font style of a cell in a grid to bold?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, You can find more details on how to customize grid style here: http://www.essentialobjects.com/doc/1/grid/styling.aspxThanks!
|
|
Rank: Member Groups: Member
Joined: 6/1/2011 Posts: 18
|
Thanks. That page tells me what can be changed, but I don't see any examples on how to change.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
I am sorry but we won't go further than that. We can tell you what property controls what, but you will need to pick up from there since we are not in a position to get into questions such as how to set a property. We consider those as generic programming questions that are beyond the scope of our support.
Thanks for understanding.
|
|
Rank: Member Groups: Member
Joined: 6/1/2011 Posts: 18
|
No problem, understood.
I have one more issue. I've set my FixedBottomItemStyle properties on the grid, however when displayed, the page only formats to the the ItemCount and ItemHeight values. If I specify a BackColor or BackgroundImage, they will not show:
<eo:Grid ID="Grid1" runat="server" BorderColor="#C7D1DF" BorderWidth="1px" ColumnHeaderAscImage="00050303" ColumnHeaderDescImage="00050304" ColumnHeaderDividerImage="00050302" FixedColumnCount="1" Font-Bold="False" FixedBottomItemCount="1" Font-Italic="False" Font-Names="Verdana" Font-Overline="False" Font-Size="9pt" Font-Strikeout="False" Font-Underline="False" GridLineColor="199, 209, 223" GridLines="Both" Height="458px" ItemHeight="19" RunningMode="Server" Width="100%" FixedBottomItemHeight="25"> <FooterStyle CssText="padding-bottom:4px;padding-left:4px;padding-right:4px;padding-top:4px;" /> <FixedBottomItemStyle CssText="background-image:url('00106003');background-repeat:repeat;" /> <ColumnHeaderStyle CssText="background-image:url('00050301');padding-left:8px;padding-top:2px;font-weight: bold;color:white;" /> <ItemStyles> <eo:GridItemStyleSet> <ItemStyle CssText="background-color: white" /> <ItemHoverStyle CssText="background-image: url(00050206); background-repeat: repeat-x" /> <SelectedStyle CssText="background-image: url(00050207); background-repeat: repeat-x" /> <CellStyle CssText="padding-left:8px;padding-top:2px; color:#336699;white-space:nowrap;" /> </eo:GridItemStyleSet> </ItemStyles> <Columns> <eo:StaticColumn DataField="DayValue" HeaderText="Day" Width="50" ReadOnly="True"> <CellStyle CssText="text-align: center; font-weight: bold;" /> </eo:StaticColumn> <eo:StaticColumn HeaderText="Daily $/Lb" ReadOnly="True"> <CellStyle CssText="text-align: center" /> </eo:StaticColumn> <eo:StaticColumn HeaderText="MTD $/Lb" ReadOnly="True"> <CellStyle CssText="text-align: center" /> </eo:StaticColumn> <eo:StaticColumn DataField="" DataFormat="{0:C}" HeaderText="Daily Sales" ReadOnly="True"> <CellStyle CssText="text-align: right" /> </eo:StaticColumn> <eo:StaticColumn HeaderText="MTD Sales" ReadOnly="True" StyleField="BoldStyle"> <CellStyle CssText="text-align: right" /> </eo:StaticColumn> <eo:StaticColumn DataField="" DataFormat="{0:C}" HeaderText="Daily Margin" ReadOnly="True"> <CellStyle CssText="text-align: right" /> </eo:StaticColumn> <eo:StaticColumn HeaderText="MTD Margin" ReadOnly="True"> <CellStyle CssText="text-align: right" /> </eo:StaticColumn> <eo:StaticColumn HeaderText="Daily %" ReadOnly="True"> <CellStyle CssText="text-align: center" /> </eo:StaticColumn> <eo:StaticColumn HeaderText="MTD %" ReadOnly="True"> <CellStyle CssText="text-align: center" /> </eo:StaticColumn> <eo:StaticColumn HeaderText="Daily Lbs" ReadOnly="True"> <CellStyle CssText="text-align: right" /> </eo:StaticColumn> <eo:StaticColumn HeaderText="MTD Lbs" ReadOnly="True"> <CellStyle CssText="text-align: right" /> </eo:StaticColumn> <eo:StaticColumn HeaderText="Daily Booked" Width="120" ReadOnly="True"> <CellStyle CssText="text-align: right" /> </eo:StaticColumn> <eo:StaticColumn HeaderText="MTD Booked" Width="120" ReadOnly="True"> <CellStyle CssText="text-align: right" /> </eo:StaticColumn> <eo:StaticColumn HeaderText="Credits"> <CellStyle CssText="text-align: center" /> </eo:StaticColumn> </Columns> </eo:Grid>
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
This appears to be a bug. FixedBottomItemStyle supposes to override ItemStyle. However in this case ItemStyle (with background-color:white) appears to be overriding FixedBottomItemStyle. We will look into it and get back to you as soon as possible.
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We have posted a new build that should fix this problem. Please see your private message for the download location.
Thanks!
|
|