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
hyperlink cells
09/10/2008
11:41
Avatar
las111
Member
Members
Forum Posts: 6
Member Since:
05/10/2008
sp_UserOfflineSmall Offline

Tony,

 I looked in the docs, demos and forums and didn't see a clear cut way to setup an onclick event for an individual cell that would allow me to perform some action such as navigate to another window.

Using FireFox I manually edited the html to add an onclick handler to a cell just to see what would happen but it killed other functionality like multiselect

Thanks...

09/10/2008
13:04
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Sorry that the docs are not ready jet, but there is a new event

onCellSelect(rowid, iCol, v) which fires when you click on cell (if defined)

rowid is the id of the row

iCol is the index of the column

v is the value

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.

09/10/2008
13:48
Avatar
las111
Member
Members
Forum Posts: 6
Member Since:
05/10/2008
sp_UserOfflineSmall Offline

Thanks for the prompt reply.

 By the way, would it be pratical to for the community to post examples of how they are using jqGrid? Something like a recipes section? This might make it easier to expand documentation across multiple platforms (assuming there are differences) and usage scenarios.

09/10/2008
13:59
Avatar
YamilBracho
Member
Members
Forum Posts: 124
Member Since:
08/09/2008
sp_UserOfflineSmall Offline

Great idea...!

I will be really happy to contribute

09/10/2008
14:06
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thank you for the recommendation

This is one of common thinks that I have discussed with a Reg. We both agree that this is needed, but as you known this requiere a lot of time and work. ( We boot have another engagements)

We must make a common decision about the future

development of jqGrid.

I think that everybody will be happy.

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.

25/02/2009
14:26
Avatar
Jim P
Member
Members
Forum Posts: 102
Member Since:
29/01/2009
sp_UserOfflineSmall Offline

Code example of linking to a page from a cell inside a grid.  This links to a Cold Fusion page and passes a key value.

    onCellSelect: function(rowid,iCol,cellcontent){
       if (iCol == 1) // link on this column using its data
       { 
     window.location.href = "casedetails.cfm?cid="+cellcontent;
        }
     if (iCol == 3) // link on this column using its data
       {
        window.location.href = "sitedetails.cfm?sid="+cellcontent;
        }
    },

Note: I tried using the new colmodel formatter property but it broke my subgrid functionality.  I'm sure that Tony will fix that in future releases.  Until then this will get the job done.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
49 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