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
Tags, anyone?
29/10/2008
17:27
Avatar
ainstushar
Member
Members
Forum Posts: 6
Member Since:
30/10/2008
sp_UserOfflineSmall Offline

Hey guys, jqgrid is amazing. I have nicely integrated it with my site, but I would like to add something more to it.

The problem: I would like to integrate shadowbox in my grid, so when a user clicks a link in my grid, a shadowbox (like lightbox or lightwindow, but much better because of adapters!) would popup and show the link. Well whenever I click on the link, jqgrid cancels the shadowbox actions. Is there a way to edit my js file or add a feature to solve this problem?

If you would like to see the problem, go to 74.143.198.68/training/training_schedule2.php If you click on “click me” shadowbox pops up, so it means that it works outside of jqgrid. But if you click on any of the class names, it won't pop up. Can you please help me? I think it has something to do with the click events that triggers selection, but I am not sure.

So can I solve this problem?

Thanks in advance.

31/10/2008
02:59
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Not 100% sure, but maybe you need to use loadComplete event to

attach some actions to href elements.

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.

31/10/2008
07:07
Avatar
ainstushar
Member
Members
Forum Posts: 6
Member Since:
30/10/2008
sp_UserOfflineSmall Offline

tony said:

Hello,

Not 100% sure, but maybe you need to use loadComplete event to

attach some actions to href elements.

Regards

Tony


Tony, thanks for the response.

Can I disable the hover over and select functions? I am using jqgrid to display data, only the admis can update them, but the data is static to the clients. The reason that I want to use jqgrid on the client end is because I want to give them the ability to sort the data by whatever column (I know there are other simpler alternatives, but why integrate 10 different things when you can have jqgrid? I mean jqgrid is like a swiss army knife).

So how do I disable the functions that take care of clicking on a link? (I will load a client side js file so I won't have to worry about other stuff).

Thanks.

01/11/2008
04:36
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

You can disable the click something in line 1304 in base module

 $(ts).before(grid.hDiv).css("width", grid.width+"px").click(function(e) {

...

but I do not think this will solve your problem.

As of my previous post you should apply a tickbox plugin in

loadComplete or better in gridComplete event.

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.

04/11/2008
07:30
Avatar
ainstushar
Member
Members
Forum Posts: 6
Member Since:
30/10/2008
sp_UserOfflineSmall Offline

Thank Tony. I disabled the function, but it still wouldn't let me click it. So I basically called an onclick. That took care of the problem. I think they should allow <a href=> tags in the script. Kind of a hassle to go through all of the trouble.

Thanks again.

04/11/2008
11:15
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Could you please try something.

After this line

there is the following line

td = (e.target || e.srcElement);

After this line add the following code and try

if( td.href) { return true;}

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.

04/11/2008
11:31
Avatar
ainstushar
Member
Members
Forum Posts: 6
Member Since:
30/10/2008
sp_UserOfflineSmall Offline

Tony,

It does not work. Same as before. Does not initiate the modal window. Hope that helps (btw, I am using version 3.2 if that helps).

Need more help?

04/11/2008
11:48
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

The link to the page that you post here does not exists.

So, could you please make the change from my previous post and

allo the link to the page with the cahged grid.base.js code

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.

04/11/2008
14:15
Avatar
ainstushar
Member
Members
Forum Posts: 6
Member Since:
30/10/2008
sp_UserOfflineSmall Offline

Sorry, I have changed the link. Try the link now, it should work now. The changed grid.base.js (minified or normal) is named grid.baseBETA.js or grid.base-minBETA.js.

URL: http://74.143.198.68/j/jqgrid/.....minBETA.js

http://74.143.198.68/j/jqgrid/.....aseBETA.js

Both of them should work, but I am using the minified version.

p.s. - Do you like it?

The new version with onclick is named training_schedule.php.

06/11/2008
01:43
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

I will include this fix in next release.

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/11/2008
07:51
Avatar
ainstushar
Member
Members
Forum Posts: 6
Member Since:
30/10/2008
sp_UserOfflineSmall Offline

You know what? That's exactly what I like about great programmers like you. You guys actually care and respond to bugs (if I had submitted this to the adobe spry framework, wow this would still be in their TODO list).

So I appreciate your hard work. Please keep up the good work. I think that this plugin is much better than the YUI's. It's configuraiton is simple and its features are amazing.

Thanks for the update. I will get it.

Just curiosity, what was the problem? Did I do something stupid or what?

Thanks Tony.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information