may be my english is rather poor, and if you unlike russians you shouldn’t read it
I created a TV with DataGrid widget (see datagridbug1.png in attachment).
Then I set values in document to TV (2.png).
And then document looked as one column with only non UTF-8 symbol in first cell (3.png).
I took datagrid classes
http://svn.modxcms.com/svn/tattoo/tattoo/releases/1.0-pre3.1/manager/includes/controls and got , but they were unhelpful.
But this classes and older classes work well with MySQL data (for example, meta-tags editor).
So problem was only with non MySQL data (only text)
My searching in modxcms.com doesn’t gave me any good result. May be nobody faced the challenge.
And I made a bugfix for this problem:
datagrid.class.php before (174 line)
$this->_coltypes = explode((strstr($this->colTypes,"||")!==false ? "||":","),$this->colTypes);
$this->_colcount = count($this->_colnames);
$tblColHdr ="<tr>";
for($c=0;$c<$this->_colcount;$c++){
after:
$this->_coltypes = explode((strstr($this->colTypes,"||")!==false ? "||":","),$this->colTypes);
$this->_colcount = count($this->_colnames);
if(!$this->_isDataset) {
$this->ds = explode((strstr($this->ds,"||")!==false ? "||":","),$this->ds);
$this->ds = array_chunk($this->ds, $this->_colcount);
}
$tblColHdr ="<tr>";
for($c=0;$c<$this->_colcount;$c++){
With this bugfix my document look so (4.png)
May be I’m not right, and it’s bullshit
) But may be it must be fixed in next releases.