comma in header text

Hi,

I have a problem with header text.



I load the header with grid.loadXMLString(), and it creates 4 columns instead 2.

I identified the cause : “the comma in the text”.



<?xml version="1.0" encoding="UTF-8"?>



    

        column, 1

        column, 2

    





I need to display comma in header text. Is there a solution to display a comma in header text?



best regards.

dlaunay



In case of loading data from XML you can use the next kind of escaping

<?xml version="1.0" encoding="UTF-8"?>


column, 1
column, 2




1229361885.zip (92.4 KB)

Hi,
   Thanks for your response, but it doesn’t solve my problem.
   When I use loadXML method, it works fine! But it doesn’t work when i use loadXMLString method.

   Attach, please take a look on my example.

Best regards.

mydemo.zip (94.4 KB)

In case of loading directly from js string - you need to use double escaping ( because js threates the \n sequences as java-script escaping and resolve them even before data loaded in grid )
mygrid.loadXMLString(‘<?xml version="1.0" encoding="UTF-8"?>column\,1column\,2’);