-
Sencha User
Display issue with angular brackets(<>) in the data in Grid
Hi,
I am facing an issue while displaying the data in grid that is retrieved from DB and have angular brackets in it. e.g Test())(><??- it is displayed as Test())(> but if data is Test())(<>??- then it is correctly displayed. However when I double click on the erroneous entry ,it is displayed correctly.
Can somebody please reply to this if they have faced similar issue.
Thanks in advance.
-
Sencha User
Angular brackets in data grid
I would put that in the <ItemTemplate> of the an asp:templatecolumn for the datagrid...for example:
<asp:TemplateColumn HeaderText="Name">
<HeaderStyle HorizontalAlign="Left" CssClass="grid-header" VerticalAlign="Middle"></HeaderStyle>
<ItemStyle HorizontalAlign="Left" Width="40%" CssClass="grid-item" VerticalAlign="Top"></ItemStyle>
<ItemTemplate>
<asp:label id="NameValue" Text='<%# Server.HtmlEncode(Container.DataItem.Name) %>' Runat="server">
</asp:label>
</ItemTemplate>
<FooterStyle BackColor="#EBF1FF"></FooterStyle>
<FooterTemplate>
<asp:imagebutton id="btnNamesEdit" runat="server" onmousedown="openNameWindow();" AlternateText="Edit"
ImageUrl="../images/icon-pencil.gif"></asp:imagebutton>
</FooterTemplate>
<EditItemTemplate>
<asp:dropdownlist ID="edtDDName" EnableViewState="false" Width="200px" CssClass="Standard-text" DataSource='<%# GetValues("LU_DrugNames") %>' DataTextField = 'LongName' DataValueField = 'ID' Runat="server">
</asp:dropdownlist>
</EditItemTemplate>
</asp:TemplateColumn>
Cegonsoft web 2.0 training
-
Sencha User
Thanks for the response.
But the issue is regarding extjs code used in a jsp.
So the solution is needed in that respect.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules