To use the functionality of dhtmlXDataStore, you need to include one file:
<script type="text/javascript" src="../codebase/datastore.js"></script>
You have 2 ways to initialize and fill the DataStore:
var myDataStore = new dhtmlXDataStore(); myDataStore.parse([ {id:"1", name:"Accounts Department"}, {id:"2", name:"Customer Service"}, {id:"3", name:"Developing Department"} ]);
var data = new dhtmlXDataStore({ url:"data/data.json", datatype:"json" });