In case of form-integration
grid.submitOnlyChanged();
in case of dataprocessor usage
dp.enablePartialDataSend(true)
In case of form-integration
grid.submitOnlyChanged();
in case of dataprocessor usage
dp.enablePartialDataSend(true)
Do you have an example please? How to use this?
i cannot find how to get all the edited cells.
this is my code:
if (isset($_POST['ids'])) {
header("Content-type: text/xml");
echo("<?xml version='1.0' encoding='utf-8' ?>");
echo "<data>";
$ids = explode(",",$_POST["ids"]);
//for each row
for ($i=0; $i < sizeof($ids); $i++) {
$rowId = $ids[$i]; //id or row which was updated
$newId = $rowId; //will be used for insert operation
echo "<action type='update' sid='".$rowId."' tid='".$newId."'/>";
$test = $_POST[$rowId."_c0"];
}
echo "</data>";
}
$test seems to be empty always… Why? I tried c0, c1, … with a value in every cell… Nothing worked?
tx
[code]if (isset($_POST[‘ids’])) {
header("Content-type: text/xml");
echo("<?xml version='1.0' encoding='utf-8' ?>");
echo “”;
$ids = explode(",",$_POST[“ids”]);
//for each row
for ($i=0; $i < sizeof($ids); $i++) {
$rowId = $ids[$i]; //id or row which was updated
$newId = $rowId; //will be used for insert operation
echo “”;
print_r($_POST);
}
echo “”;
}[/code]
when I use this (the print_r, so I can see all the $_POST variables), I only get f.e.:
[ids] => 182
so ids is the only variable that is passed through… HOW to get the other POST-variables (like c0, status, …)
thx!!
SOLVED!!
it was the wrong version of dhtmlxdataprocessor.js
I have no idea how the original version was mixed up with another version, maybe i tried something before and forgot to undo this…
finally the grid is working!