Forum


17:27

30/10/2008

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.
02:59

Moderators
30/10/2007

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.
07:07

30/10/2008

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.
04:36

Moderators
30/10/2007

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.
11:15

Moderators
30/10/2007

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.
11:48

Moderators
30/10/2007

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.
14:15

30/10/2008

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.
01:43

Moderators
30/10/2007

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.
07:51

30/10/2008

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.
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66