Check documentation for the latest version of dhtmlxSuite Samples of Client-Side Initialization DHTMLX Docs

Samples of Client-Side Initialization

Grid

myGrid = new dhtmlXGridObject("myContainer");
//... grid configuration commands
myGrid.load("myconnector.php");

TreeGrid

Static mode

myGrid = new dhtmlXGridObject("myContainer");
myGrid.setColTypes("tree,...");
//...grid configuration commands
myGrid.load("myconnector.php");

Dynamic mode

myGrid = new dhtmlXGridObject('myContainer');
myGrid.setColTypes("tree,...");
//...
myGrid.kidsXmlFile="connector.php";
myGrid.load("connector.php");

Tree

Static mode

tree=new dhtmlXTreeObject("treeboxbox_tree","100%","100%",0);
//...
tree.load("connector.php");

Dynamic mode

tree=new dhtmlXTreeObject("treeboxbox_tree","100%","100%",0);
//...
tree.setXMLAutoLoading("connector.php");
tree.load("connector.php");

Combo

Static mode

var combo=new dhtmlXCombo("combo_zone2","alfa2",200);
combo.load("connector.php");

Auto-complete mode

var combo=new dhtmlXCombo("combo_zone2","alfa2",200);
combo.enableFilteringMode(true,"connector.php",true);
combo.load("connector.php");

Scheduler

scheduler.init(some_obj)
scheduler.load("connector.php");

Form

var form = new dhtmlXForm(someId);
form.load("connector.php");

DataView

var view = new dhtmlXDataView({...});
view.load("connector.php");

Chart

var mychart = new dhtmlXChart({...});
mychart.load("connector.php");

DataStore

var myDataStore = new dhtmlXDataStore();
myDataStore.load("connector.php");
Back to top