Initialize from XML, Load through AJAX

Hi,



I would like to be able to use an XML file to initialize the structure of the grid, but not the data. Properties such as the number of columns, datatypes, etc., would be defined in the XML file, but I want to be able to load and refresh the data from the database, directly. Is this possible? If so, how?



Thanks,

Dave

but I want to be able to load and refresh the data from the database, directly
There is no way to connect directly to DB buy you can use same loadXML command with dynamic server side script

grid.loadXML(“some.php”);

==== some.php ==========
<?php
    connect_to_db();
    $data=fetch_data();

    echo format_as_xml($data);

?>

In such scenario component will try to load data from server side script, which will connect to DB and output necessary data as XML.