This example uses Sigma Quest Transport to fetch the grid data after the page is
displayed.
- The grid data can be defined as JSON or XML.
- It easy to integrate data with any server-side technology.
XML DataSource
Code
request = new SigmaRequest();
request.open("get","../data/employee.xml",true);
request.onResult = function(){
var doc = request.getXMLDoc();
grid.bindXML(doc,"employee");
}
request.send();
JSON DataSource
Code
request = new SigmaRequest();
request.open("get","../data/employee.json",true);
request.onResult = function(){
var json = request.getValue();
if(json){
grid.bindData(json);
}
}
request.send();
|