Load Data From URL

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();



Note - Because of security issues, This demo is available online only within MS IE. Please see it online.

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();


All contents are (c) Copyright 2005 - 2007, Sigma Software Inc. All rights Reserved