Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Please help with link columns
26/03/2009
16:51
Avatar
pr0
Member
Members
Forum Posts: 6
Member Since:
27/03/2009
sp_UserOfflineSmall Offline

Hi dudes,

i read some topics on this forum but i can found a good explanation to my problem.

I have:

colModel:[
                  {name:'id',index:'id', width:65, formatter: 'link'}

]

And PHP:

$responce->rows[$i]['cell']=array('#'.$row[id]);

How can i set a link for ID column?

Thanks, best regards!

27/03/2009
04:41
Avatar
vencedor
Bulgaria
Member
Members
Forum Posts: 7
Member Since:
26/03/2009
sp_UserOfflineSmall Offline

colModel:[
         {name:'id',index:'id', width:65, formatter: 'link', showlink:{'http://someurl.com/showme_id.php?id=',showAction: 'show'}}

]

and you can write the showme_id.php to redirect each id to some external or internal address that is not based on one url address

29/03/2009
14:18
Avatar
pr0
Member
Members
Forum Posts: 6
Member Since:
27/03/2009
sp_UserOfflineSmall Offline

Thx you Vencedor for ur help but im getting constantly the following error at firebug:

invalid property id

This is my code line:

{name:'oferta',index:'oferta', width:65, formatter: 'link', showlink:{'index.php?option=index&id=',showAction: 'show'}, …..

Thx you in advance

30/03/2009
03:23
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

{name:'oferta',index:'oferta', width:65, formatter: 'showLink', formatoptions:{baseLinkUrl: 'index.php', addParam : '&option=index'}},

The id is added automaticallyat first place

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.

30/03/2009
13:57
Avatar
pr0
Member
Members
Forum Posts: 6
Member Since:
27/03/2009
sp_UserOfflineSmall Offline

Hi tony,

your example works fine but i get this link:

/index.phpshow?id=21&option=index

why show word appear?

Thxs again!

01/04/2009
02:31
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

There is default value for showAction in the language file. (This value will be removed in next release).

In order to work all do :

{name:'oferta',index:'oferta', width:65, formatter: 'showLink', formatoptions:{showAction:'', baseLinkUrl: 'index.php', addParam : '&option=index'}},

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.

06/04/2009
10:41
Avatar
bandlamudi
bandlamudi
New Member
Members
Forum Posts: 2
Member Since:
06/04/2009
sp_UserOfflineSmall Offline

I am unable to set params to my links

{name='id',formatter:'showLink',formatoptions:{baseLinkUrl:'Display.jsp'}}

how I can send params along with this url

Please help me

Thanks,

@Bandlamudi

07/04/2009
08:10
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Static or dynamic from the row contents? If second is the case currently this is not possible. For the first see the post above.

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
50 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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information