html decode textarea

  1. #1

    html decode textarea

    hi,
    i have a FormLayout connected with a store and a textarea, it's possible decode text in textarea ?
    this is my code:
    
    <asp:ObjectDataSource ID="odsEdit" runat="server" OldValuesParameterFormatString="original_{0}"
        SelectMethod="GetData" TypeName="dsTradCategorieTableAdapters.Trad_CategorieTableAdapter">
    </asp:ObjectDataSource>
    <ext:Store ID="storeEdit" runat="server" DataSourceID="odsEdit">
        <Reader>
            <ext:JsonReader ReaderID="IDTradCat">
                <Fields>
                    <ext:RecordField Name="IDTradCat" />
                    <ext:RecordField Name="IDCategoria" />
                    <ext:RecordField Name="IDLingua" />
                    <ext:RecordField Name="datains" Type="Date" />
                    <ext:RecordField Name="descrizione" />
                    <ext:RecordField Name="nomecat" Type="String" />
                    <ext:RecordField Name="pagina" />
                    <ext:RecordField Name="attivo" />
                </Fields>
            </ext:JsonReader>
        </Reader>
        <Listeners>
            <DataChanged Handler="var record = this.getAt(0) || {};#{frmEdit}.getForm().loadRecord(record);" />
            <BeforeLoad Handler="#{winEdit}.body.mask('Loading...', 'x-mask-loading');" />
            <Load Handler="#{winEdit}.body.unmask();" />
            <LoadException Handler="#{winEdit}.body.unmask();" />
        </Listeners>
    </ext:Store>
    
    <ext:FormPanel ID="frmEdit" runat="server" Border="false" MonitorValid="true" BodyStyle="background-color:transparent;">
                    <Body>
                        <ext:FormLayout ID="FormLayout1" runat="server">
    
                                     <ext:Anchor>
                                
               <ext:TextArea ID="descrizione" FieldLabel="descrizione" ReadOnly="true"                             runat="server"                         DataIndex="descrizione" MsgTarget="Side">
                                        </ext:TextArea>
                                          </ext:Anchor>
                      
            </ext:FitLayout>

  2. #2

    RE: html decode textarea

    i have a FormLayout connected with a store and a textarea, it's possible decode text in textarea ?
    I'm not sure I understand. The TextArea is going to render whatever string you pass into it. Can provide more information, or a sample of the data for that field?


    Geoffrey McGill
    Founder
  3. #3

    RE: html decode textarea

    the textarea is connected through the dataIndex to my store. I would like the text that comes from the database in the textarea control is decoded..
    it's possible ?

Similar Threads

  1. How to content <%=Html.TextArea()%>
    By qch2006qch in forum 1.x Help
    Replies: 0
    Last Post: Jan 19, 2012, 2:54 AM
  2. [CLOSED] TextArea.Html missing
    By jeybonnet in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 28, 2011, 8:11 AM
  3. html decode on combo box
    By [WP]joju in forum 1.x Help
    Replies: 1
    Last Post: Dec 22, 2009, 6:20 AM
  4. [CLOSED] [1.0] Decode HTML characters
    By danielg in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 22, 2009, 6:12 AM
  5. HTML Decode using XTemplate
    By rthiney in forum 1.x Help
    Replies: 2
    Last Post: Aug 11, 2009, 2:34 PM

Posting Permissions