Grid does not render when using excel as datasource

Hello to all. I am new to dhtmlx components and i am trying to use some of the grids functionality. Here is my code when i try to render grid with excel as datasource
First comes the client side code:

<?php echo $page_title;?>
<?php include"";?> <?php include"";?>
<?php include'';?>

then comes the server side code: gridconnect.php

<?php        require_once 'PHPExcel/Autoloader.php';
                 require_once 'PHPExcel/IOFactory.php';
                 require_once 'PHPExcel.php';
                $res=new PDO('mysql:host=localhost;dbname=virtualplanet',"root","");
                $grid=new GridConnector("/lampp/folder/Untitled.xls","ExcelDBDataWrapper");
                $grid->render_table("*","id","A,B,C"); ?>

Grid doesn’t render at all and i wonder what am i doing wrong.Using linux and xampp latest package.TIA and need to say that in all the dhtmlx suite looks like there was a lot of hard work that had been done.

You have run code, which inits grid before rendering grid’s div on the page.
Change the order of blocks ( place code after grid’s div ) or just run grid’s initialization from onload handler of the page.