My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

DataGrid Options
Posted: Friday, February 8, 2019 8:25:15 AM
Rank: Member
Groups: Member

Joined: 6/17/2010
Posts: 19
The display of text between square brackets in Data-Grid's table is suppressed along with the square brackets.
If i query the cell-value of the DataGrid-Table, the text is completely present.

cell.getValue()----------presentation in Grid

<Arrgh> !!!!-------------!!!!

<eo:Grid ID="Grid1" Height="200px" Width="645px" BorderColor="#828790" BorderWidth="1px" ClientSideOnContextMenu="" ClientSideOnItemSelected=""
ColumnHeaderDescImage="00050205" ColumnHeaderDividerImage="00050203" ColumnHeaderAscImage="00050204"
FixedColumnCount="1" Font-Bold="False" Font-Italic="False" Font-Names="Tahoma" FullRowMode="True"
Font-Overline="False" Font-Size="8.75pt" Font-Strikeout="False" Font-Underline="False" StyleSetIDField=""
GridLineColor="240, 240, 240" GridLines="Both" ItemHeight="19" runat="server" >
<FooterStyle CssText="padding-bottom:4px;padding-left:4px;padding-right:4px;padding-top:4px;" />
<ItemStyle CssText="background-color: white" />
<AlternatingItemStyle CssText="background-color:#E0EAFF;background-repeat:repeat-x;" />
<ItemHoverStyle CssText="background-repeat:repeat-x;" />
<SelectedStyle CssText="background-repeat:repeat-x;" />
<SelectedHoverStyle CssText="background-repeat:repeat-x;" />
<CellStyle CssText="padding-left:8px;padding-top:2px;" />
<eo:CheckBoxColumn AllowSort="False" Width="0" />
<eo:RowNumberColumn HeaderText="" AllowResize="False" AllowSort="False" Width="30" />
<eo:StaticColumn DataField="aufgabe" HeaderText="" AllowResize="False" AllowSort="True" Width="180"></eo:StaticColumn>
<eo:StaticColumn DataField="todo" HeaderText="" AllowResize="False" AllowSort="True" Width="215"></eo:StaticColumn>
<eo:StaticColumn DataField="memo" HeaderText="" AllowResize="False" AllowSort="True" Width="200"></eo:StaticColumn>
<ColumnHeaderStyle CssText="background-image:url('00050202');padding-left:8px;padding-top:4px;" />

We have been working with the control for several years; we only noticed it by accident.
What can we do?

Posted: Friday, February 8, 2019 11:14:49 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 21,434

This is because whatever data you provided to the Grid is interpreted as raw HTML. So if you wish to display HTML, then make sure they are properly formed. For example, if you pass <b>test</b> to the Grid cell, then it will display bold "test". However if you do NOT want to the text to be interpreted as HTML, then you must HTML encode it. So if you want to display <b>test</b> exactly as is, then you will need to pass &lt;b&gt;test&lt;/b&gt; to the Grid cell.

Hope this helps.

Posted: Monday, February 11, 2019 4:16:02 AM
Rank: Member
Groups: Member

Joined: 6/17/2010
Posts: 19
Arrgh, H T M L !!!!!!!!

Yes that's how it works.
Thank You

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.