Part of the EllisLab Network
   
 
how i can add a url in cell.
Posted: 14 June 2008 02:42 AM   [ Ignore ]  
Summer Student
Total Posts:  2
Joined  06-14-2008

hi,guys,thank u ,u make so grid ,it is powerful.

but i have a problem.

how i can add a url in cell,such as “this grid is prowerful grid”.it will be title,then ,i click this title, it will skip new page.show detailed information of this title.

thanks again

Profile
 
 
Posted: 16 June 2008 05:48 AM   [ Ignore ]   [ # 1 ]  
Summer Student
Total Posts:  4
Joined  05-28-2008

try this

  $(”#flex1”).flexigrid({
        url: ‘post.php’,
        dataType: ‘xml’,
        colModel : [
          {display: ‘Nom’, name : ‘nom’, width : 180, sortable : true, align: ‘center’},
          {display: ‘Prenom’, name : ‘prenom’, width : 120, sortable : true, align: ‘center’},
          {display: ‘Structure’, name : ‘Nom_de_structure’, width : 180, sortable : true, align: ‘center’},
          {display: ‘Teléphone’, name : ‘tel’, width : 130, sortable : true, align: ‘center’},
          {display: ‘Email’, name : ‘email’, width : 180, sortable : true, align: ‘center’, process: makeLink},
          {display: ‘Détail’, name : ‘num’, width : 80, align: ‘center’, process: detail}
          ],
        buttons : [
          /*{name: ‘Add’, bclass: ‘add’, onpress : test},
          {name: ‘Delete’, bclass: ‘delete’, onpress : test},*/
        {separator: true},
          {name: ‘A’, onpress: sortAlpha}
       

          ],
        searchitems : [
          {display: ‘Nom’, name : ‘nom’, isdefault: true},
          {display: ‘Prenom’, name : ‘prenom’}
          ],
        sortname: “nom”,
        sortorder: “asc”,
        usepager: true,
        title: ‘Contacts’,
        useRp: true,
        rp: 17,
        showTableToggleBtn: true,
        width: 1000,
        height: 487
        }); 
     
})

function makeLink(celDiv){
    $(celDiv).html(’’ + $(celDiv).html() + ‘’);
}

Profile
 
 
   
 
 
‹‹ jEditable in Flexigrid      Last.FM Library ››