Hello
I’m using Grid 3.5 Pro / Connector 1.5
I try to load a Grid data (works) and want that any change inside the grid will take effect serverside. I tried to connect with Connector but nothing will work. Can somebody help me please … where is my mistake ?!
Init
<link href="../../../dhtmlx/Grid/codebase/dhtmlxgrid.css" rel="stylesheet" type="text/css">
<link href="../../../dhtmlx/Grid/codebase/ext/dhtmlxgrid_pgn_bricks.css" rel="STYLESHEET" type="text/css" >
<link href="../../../dhtmlx/Grid/codebase/skins/dhtmlxgrid_dhx_skyblue.css" rel="stylesheet" type="text/css">
<script src="../../../dhtmlx/Grid/codebase/dhtmlxcommon.js"></script>
<script src="../../../dhtmlx/Grid/codebase/dhtmlxgrid.js"></script>
<script src="../../../dhtmlx/Grid/codebase/dhtmlxgridcell.js"></script>
<script src="../../../dhtmlx/Grid/codebase/excells/dhtmlxgrid_excell_grid.js"></script>
<script src="../../../dhtmlx/Grid/codebase/excells/dhtmlxgrid_excell_onoff.js"></script>
<script src="../../../dhtmlx/Grid/codebase/ext/dhtmlxgrid_filter.js" type="text/javascript"></script>
<script src="../../../dhtmlx/Grid/codebase/ext/dhtmlxgrid_export.js"></script>
<script src="../../../dhtmlx/Grid/codebase/ext/dhtmlxgrid_nxml.js"></script>
<script src="../../../dhtmlx/Grid/codebase/ext/dhtmlxgrid_undo.js"></script>
<script src="../../../dhtmlx/Grid/codebase/ext/dhtmlxgrid_hmenu.js"></script>
<script src="../../../dhtmlx/Connector/connector.js"></script>
<script src="../../../dhtmlx/DataProcessor/dhtmlxdataprocessor.js"></script>
Grid
Grid[1] = new dhtmlXGridObject('gridbox');
Grid[1].setImagePath("../../../dhtmlx/Grid/codebase/imgs/");
Grid[1].setHeader("Mitarbeiter,Shoutbox, Objekt<br>Warnung, Anlagen<br>Warnung, Ersatz-<br>auftrag,WONR<br> View, WONR<br>X-View,Termin-<br> planer,WONR<br> Block,Memo, ausgef.<br>Arbeiten,F2CM,WONR<br>Reset,News,Pegel-<br>werte");
Grid[1].setInitWidths("*,75,72,72,65,55,60,65,55,55,70,55,55,55,60");
Grid[1].setColAlign("left,center,center,center,center,center,center,center,center,center,center,center,center,center,center");
Grid[1].setColTypes("ed,onoff,onoff,onoff,onoff,onoff,onoff,onoff,onoff,onoff,onoff,onoff,onoff,onoff,onoff");
Grid[1].setColSorting("str,int,int,int,int,int,int,int,int,int,int,int,int,int,int");
Grid[1].enableTooltips("false,false,false,false,false,false,false,false,false,false,false,false,false,false,false");
Grid[1].enableRowsHover(true, 'grid_hover');
Grid[1].attachEvent("onXLS", function() {document.getElementById('loading').style.display = 'block';});
Grid[1].attachEvent("onXLE", function() {document.getElementById('loading').style.display = 'none';});
Grid[1].setSkin("light");
Grid[1].init();
Grid[1].enableLightMouseNavigation(false);
Grid[1].enableHeaderMenu();
Grid[1].enableUndoRedo();
Grid[1].enableAlterCss("rows_even", "rows_uneven");
Grid[1].load("test.php");
var DataProcessor = new dataProcessor("test.php");
DataProcessor.init(Grid[1]);
test.php
<?php
include ('../../../dhtmlx/Connector/grid_connector.php');
include ('../../../dhtmlx/Data/SQL/config.php');
$res = mysql_connect($mysql_host, $mysql_user, $mysql_pasw);
mysql_select_db($mysql_db);
$conn = new GridConnector($res, "MySQL");
$conn->enable_log("temp.log");
$conn->dynamic_loading(100);
$conn->render_table("sk_module","id","mod_user,mod_shoutbox,mod_owarnung,mod_awarnung,mod_ersatzauftrag,mod_wonr_historie,mod_wonr_overview,mod_wonr_overview_admin,mod_terminplaner,mod_blockieren,mod_memo,mod_aarbeiten,mod_f2_cablemaster,mod_zuruecksetzen,mod_news,mod_pegelwerte");
?>
Thank you
Best regards
Oli