Trying to setup a connector for Treegrid

Hi Guys,

I have setup a treegrid on the client side as follows:

 arbGrid =  avFltLayout.cells("a").attachGrid();
                   //Account has groups 
        with(arbGrid){
            setHeader("Group,KPI,score");
            setColumnIds("group,kpi,score");
            setColAlign("left,left,left");
            setColTypes("tree,ro,edtxt");
            setColSorting("str,str,int");
            setInitWidthsP("20,70,10");
       };           
           
       var dparb = new dataProcessor("/app/ajax_averages/25/listkpi/0"); //data processor setup for arb. avg kpi
        dparb.action_param = "dhx_editor_status"; 
        dparb.init(arbGrid);
        arbGrid.init();
        arbGrid.load("/app/ajax_averages/25/listkpi/0"); 

For the controller on server side:

if(isset($urlParts[3]) && isset($urlParts[4]) && $urlParts[3]=="listkpi"){
 $conn->configure("dummy", "id", "kpi,score","","group");
    $conn->useModel(new ArbAvgModel());
    $conn->render();
}

And the model on server side is :

class ArbAvgModel{
    function get($request){
        global $account;
            foreach($account->questionGroups as $grid => $agroup){
                $data[] = array("id" => $grid,"kpi" => $agroup->title,"score" => 9.0,"group" => null);//put the group folder 
                if($agroup->masterQuestionGroupId == 1) continue; //this is not a question group
                foreach($agroup->items as $q){// iterate through questions and put them under the group
                     $data[] = array("id" => $q->id, "kpi" => $account->questions[$q->id]->sort_title,"score" => 9.0,"group" => $grid ); 
                }

            };

        return $data;
    }
}

The grid renders without the tree. What I’m trying to do is that the questions should be displayed under the tree of their group. But in reality what I’m getting is a normal grid(without tree) with the groups and questions displayed row by row. How do I get the connector to display the treegrid ??

Hi Guys,

Any help on this one ?? Please advice