SmarRendering Problem

Hi Guys,

I am having problem with smartrendering, What happens is that only first 10 rows are shows after wards the grid stops working. Following is the code that i am trying to run



XML - FILE (php file)



<?php

    error_reporting(E_ALL ^ E_NOTICE);

    

    if ( stristr($_SERVER[“HTTP_ACCEPT”],“application/xhtml+xml”)) {

        header(“Content-type: application/xhtml+xml”); } else {

        header(“Content-type: text/xml”);

    }

    if(!isset($_GET[“count”]))

        $_GET[“count”]=10;

    if(!isset($_GET[‘posStart’]));

        if(!isset($_GET[‘posStart’]))

        $_GET[“posStart”]=0;    

    echo("<?xml version='1.0' encoding='iso-8859-1'?>\n");

?>



<?php

        echo “\n”;

        echo “<column width=”*" height=“80px” type=“ro” align=“center” sort=“str”>Destination";

        echo “<column width=“150” type=“ro” align=“center” sort=“int”>Dial Prefix”;

        echo “<column width=“60” type=“ro” align=“center” sort=“int”>SR”;

        echo “”;

            for($i=0; $i<$_GET[‘count’]; $i++){print("<row id=‘r".($i+$_GET[‘posStart’])."’>".$i.“index is “.($i+$_GET[‘posStart’]).“load turn started from “.$_GET[‘posStart’].” + “.$_GET[‘count’].””);

            }

    ?>







File Containing Script












Please help me in this regard. I would be waiting for your response



Regards

Muhammad Jafer

Software Engineer

xeeonix.com


Hello,


tag should be loaded only once to configure grid. So, you can add the following check here:





if($_GET[‘posStart’]==0){
echo “\n”;
echo “<column width=”*" height=“80px” type=“ro” align=“center” sort=“str”>Destination";
echo “<column width=“150” type=“ro” align=“center” sort=“int”>Dial Prefix”;
echo “<column width=“60” type=“ro” align=“center” sort=“int”>SR”;
echo “”;
}