Part of the EllisLab Network
   
 
how i can add a url in cell.
Posted: 14 June 2008 01: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 04: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 ››
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 819, on March 11, 2010 11:15 AM
Total Registered Members: 120509 Total Logged-in Users: 32
Total Topics: 126576 Total Anonymous Users: 6
Total Replies: 665464 Total Guests: 379
Total Posts: 792040    
Members ( View Memberlist )