Page 1 of 1

No links in the column headings for my record grid

PostPosted: Tue Jun 24, 2008 7:08 am
by Jean
Hi Steve,
I have a record grid without any link to sort from the column headings. I get the record from several tables but I tried from one table and it is the same. I have the 0.7.1 version of XF.

Code: Select all
   $resultat=mysql_db_query($dbname, $sql, $id_link);
$info = array();
  while ( $rang = mysql_fetch_assoc($resultat) ) {
$info[]=$rang;
}
import('Dataface/SkinTool.php');
import('Dataface/RecordGrid.php');
$grid = new Dataface_RecordGrid(& $info);
df_display(array('body'=>$grid->toHtml()), 'Dataface_Main_Template.html');


I don't see any call of ajax. Do I have to add something ?

Thank you again Steve.

Jean

PostPosted: Tue Jun 24, 2008 10:01 am
by shannah
Hi Jean,

The record grid may not include links to sort the records. If the html table has an id of 'sortable', then the columns will be sortable via javascript. The latest RecordGrid has this as the default id, but I'm not sure about 0.7.1..

-Steve

PostPosted: Wed Jul 02, 2008 5:58 am
by Jean
Hi Steve,
Back on the forum, thank you, I change it for the beta 3.
Jean