Forum


10:49

HI can some one point me in the right direction. I have a grid full working how i want it to but i am having problems using the href feature.
Here's what i am trying to accomplish.
I have my data in a grid and i want link the ContactId field to go to another page and have it pass the value of the ContactId of the selected field. I have tried to make it work but rather that the link directing to the desired page it just creates a link to the same directory.. Here is some of the code..for the colModel:
colModel :[
{name:'contactid',index:'id', width:50,resizable:false, sorttype:”int”,resizable:false,editrules:{readonly:true}},
{name:'FirstName',index:'FirstName', width:100,resizable:false, sorttype:”text”,editable:true,edittype:”text”,editoptions:{size:30,maxlength:50},editrules:{required:true}},
{name:'LastName',index:'LastName', width:100,resizable:false, align:”left”,sorttype:”text”,editable:true,edittype:”text”,editoptions:{size:30,maxlength:50},editrules:{required:true}},
{name:'DisplayName',index:'DisplayName', width:100,resizable:false, align:”left”,sorttype:”text”,editable:true,edittype:”text”,editoptions:{size:30,maxlength:50},editrules:{required:true}},
{name:'UserName',index:'UserName', width:100,resizable:false,align:”left”,sorttype:”text”,editable:true,edittype:”text”,editoptions:{size:30,maxlength:50},editrules:{required:true}},
{name:'UserAccountingCode',index:'UserAccountingCode',resizable:false, sortable:false,editable:true,edittype:”text”,editoptions:{size:15,maxlength:15},editrules:{required:false}},
{name:'Phone',index:'Phone',resizable:false, sortable:false,search:false,editable:true,edittype:”text”,editoptions:{size:15,maxlength:12},editrules:{required:false}},
How can i set it up so that if the user clicks the Contact ID Field It will take them to ContactInfo.cfm and bring along the ContactId that the User selected.
Here is the link that it renders: http://www.sample.org/grid/18
Thanks in advance …
10:34

Moderators
30/10/2007

Hello,
Maybe you will need to use the formatter showLink.
For more see here:
http://www.trirand.com/jqgridw....._formatter
There is example
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
75 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66