1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    3
    Vote Rating
    0
    ponsu is on a distinguished road

      0  

    Default GXT Pagination Grid - Populate XML String as Grid Column Data

    GXT Pagination Grid - Populate XML String as Grid Column Data


    Hi,

    I am using GXT 2.2.4. I have a Grid where I am populting the list of records. One of the Grid column contains XML String data. When I populate this column in the GRID, I am only getting the plain text without any XML contents.

    For example, the expected XML String in the column is,
    <?xml version="1.0" encoding="UTF-8"?><emailConfiguration><Name>TESTApplication</Name><AppName>TESTAPP</AppName><From>XX</From><To>YY</To><Subject>Email Notification</Subject></emailConfiguration>

    But the actual data populated in the column is,
    TESTApplicationTESTAPPXXYYEmail Notification

    Can you please suggest a way to populate and display the GRID column with XML content.

    Thanks in advance
    Ponsu

  2. #2
    Sencha User
    Join Date
    Jun 2011
    Location
    Iasi, Romania
    Posts
    144
    Vote Rating
    0
    catalin.ciobanu is on a distinguished road

      0  

    Default


    try using &lt; and &gt; in stead of < >

  3. #3
    Sencha User
    Join Date
    Dec 2012
    Location
    India
    Posts
    1
    Vote Rating
    0
    recaph is on a distinguished road

      0  

    Default Inbuilt Function?

    Inbuilt Function?


    I also have same issue with my data. Is there any inbuilt function which can do this.

  4. #4
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,731
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    Assuming a relatively recent version of GWT, look at SafeHtmlUtils.fromString(String) or htmlEscape(String), depending on if you need a SafeHtml object for GXT 3 grid or a String for GXT 2. GXT 2.3.0 also added El.toSafeHTML(String) to properly escape a html string.

    All of these are designed to properly escape content to be rendered in html without tags - this will work for xml as well as html.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi