Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Kurt on Mar 10, 2009 06:37
open dhtmlx forum
The text in dhtmlxGrid.

Hi team

I want to set my text which has the following property , how should I set up it?
 
readonly
HTML allowed
Enter can be displayed
 
thanks.
Answer posted by dhxSupport on Mar 10, 2009 07:01
>>readonly
You can use "ro" eXcell type
>>HTML allowed
Any html can be stored inside CDATA into xml:
<cell><![CDATA[
<div>Some text</div>
<div>Anothe some text</div>
]]></cell>
>>Enter can be displayed
You can use "txt" eXcelly type. But in this case cell will be editable and html is not allowed (it will be displayed as plain text).

Answer posted by Kurt on Mar 11, 2009 18:46

Now I use the "txt" in my grid.

If the records of my DB table contains the following content

ACT{

      abcde;

      12345,67890;

      123          456;

      a&nbsp;b;

}

 

It will be displayed like this .

ACT{

      abcde;

      12345,67890;

      123 456;

      a b;

}

The number of spaces between 123 and 456 are displayed as a space and the &nbsp; is also displayed as a space .
 
Could you tell me how to solve the problem. thank you.
Answer posted by dhxSupport on Mar 12, 2009 04:15
Please check what symbols are between 123 and 456 at your database. 
Answer posted by Kurt on Mar 12, 2009 18:05
The symbols between 123 and 456 at my database art "          ".
Answer posted by dhxSupport on Mar 13, 2009 05:45
Try to use "txttxt" eXcell type. In this case grid will not convert special characters.
Answer posted by Kurt on Mar 17, 2009 19:20

Thanks a lot. I have cleared the problem with "txttxt" eXcell type.

but the ENTER key will be not displayed with using "txttxt" eXcell type.

For example.There are some symbols at my database like this.

ACT{

    記事化コマンド,ABCDEFG;
    記事化コマンド,ABC        DEFG;
    123;

It will be displayed like this

ACT{    記事化コマンド,ABCDEFG;    記事化コマンド,ABC        DEFG;    123;}

 

Thanks.