Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Madhu on Oct 09, 2008 23:25
open dhtmlx forum
HTML Content inside a Cell

Hi,

I want to add content to a cell so that the values appear one below the other in the same cell.
For this, I think we have to place some html content with the <br/> tag. This will work fine if we load the grid from a xml file.
But in my code I am dynamically adding the rows to the grid by passing an array which contains all the cell values using
mygrid.addRow();

But the question is, Even if I add any html content as the cell value, it is not getting reflected in the grid.

Please provide a solution to this issue.


Thank you,

Madhu
Answer posted by Support on Oct 10, 2008 01:39
Technically , you can use any HTML content inside addRow command , it will be rendered in necessary way ( expect if you are using pure text cells, such as rotxt, edtxt, corotxt )

    grid.addRow("r123",["a","b<br/>b<br/>","c"])

Be sure to use enableMultiline mode, because in other case grid may still not render multiline content