DHTMLX Docs & Samples Explorer

add(obj)

Adds a new record to the dataset.

myStore.add({
          FirstName:"Alex",
          LastName:"Fgorle",
          Department:"HR",
          Gender: "Male"
});
//or if you use scheme
myStore.data.scheme({
	    FirstName:"New employee",
            LastName:"",
            Department:"Unknown",
            Gender: "Male"
});
 
myStore.add({});

Parameters:

  • obj - the data object that will be added to the dataset