No links in the column headings for my record grid

A place for users and developers of the Xataface to discuss and receive support.

No links in the column headings for my record grid

Postby Jean » Tue Jun 24, 2008 7:08 am

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
Jean
 
Posts: 259
Joined: Wed Nov 07, 2007 1:30 am
Location: Pau, France

Postby shannah » Tue Jun 24, 2008 10:01 am

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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby Jean » Wed Jul 02, 2008 5:58 am

Hi Steve,
Back on the forum, thank you, I change it for the beta 3.
Jean
Jean
 
Posts: 259
Joined: Wed Nov 07, 2007 1:30 am
Location: Pau, France


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 10 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved