Hi, let's say we have multiple textarea on edit mode because on the database there is a DESCRIPTION in SPANISH and another row as a DESCRIPTION in ENGLISH. So you have 2 textarea ($col["formatter"] = "wysiwyg") on the edit mode. The problem is that it seems that on the render of the texarea on edit mode, texarea only renders the last of the two rows data, the result is that you have the same data in the two text areas on edit mode (when you are going to edit a row) so the data is incorrect and not the same on the DB, and anyway the data on the DB is correct:
// DEScripcion in SPANISH
$col = array();
$col["title"] = "Descripción";
$col["name"] = "descripcion";
$col["width"] = "10";
$col["editable"] = true;
$col["edittype"] = "textarea"; // render as textarea on edit
$col["formatter"] = "wysiwyg";
$col["editrules"] = array("required"=>true);
$col["editoptions"] = array("rows"=>5, "cols"=>40); // with these attributes
// don't show this column in list, but in edit/add mode
$col["hidden"] = true;
$col["editrules"] = array("edithidden"=>true);
$cols[] = $col;
// DEScripcion in ENGLISH
$col = array();
$col["title"] = "Descripción Inglés";
$col["name"] = "descripcioneng";
$col["width"] = "10";
$col["editable"] = true;
$col["edittype"] = "textarea"; // render as textarea on edit
$col["formatter"] = "wysiwyg";
$col["editrules"] = array("required"=>true);
$col["editoptions"] = array("rows"=>5, "cols"=>40); // with these attributes
// don't show this column in list, but in edit/add mode
$col["hidden"] = true;
$col["editrules"] = array("edithidden"=>true);
$cols[] = $col;
So what's the problem in this code? should be correct, but something is wrong!
Thank's
Hello Alex,
I have regenerated this issue. I'll be updating after some resolution.