PDA

View Full Version : How to display QuickTip at nodes of a Tree with "Direct"



mashiki
16 Jun 2009, 7:40 AM
Hi

I add "qtip" to the sample php code of "Ext.Direct Remoting With Tree" (http://extjs.com/deploy/ext-3.0-rc2/examples/direct/direct-tree.php) expecting QuickTip to be displayed at the tree node.
However, It's not displayed.
What is bad?



samples/direct/php/classes/TestAction.php

:
function getTree($id){
$out = array();
if($id == "root"){
for($i = 1; $i <= 5; ++$i){
array_push($out, array(
'id'=>'n' . $i,
'text'=>'Node ' . $i,
'qtip'=>'QTIP ' . $i, // here
'leaf'=>false
));
}
}else if(strlen($id) == 2){
$num = substr($id, 1);
for($i = 1; $i <= 5; ++$i){
array_push($out, array(
'id'=>$id . $i,
'text'=>'Node ' . $num . '.' . $i,
'qtip'=>'QTIP ' . $num . '.' . $i, // and here
'leaf'=>true
));
}
}
return $out;
}
:

randhir
23 Sep 2009, 10:20 PM
hey even i am getting the same problem the qtip does not display after mapping from the array can any one suggest what is the problem.