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
How to control the Tool Tips?
22/12/2008
00:35
Avatar
romka
Member
Members
Forum Posts: 7
Member Since:
22/12/2008
sp_UserOfflineSmall Offline

Hi!

I want to control the Tool Tips, which displaying when the mouse over the cell.

How can i do this? For example, I need to show another text in the tool tip, not the text of the cell.

Thanks.

22/12/2008
22:09
Avatar
romka
Member
Members
Forum Posts: 7
Member Since:
22/12/2008
sp_UserOfflineSmall Offline

bump

23/12/2008
04:12
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Currently this is added dynamically. I plan to overcome this when you add a some class to that cell and set custom tooltip.

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.

23/12/2008
22:20
Avatar
romka
Member
Members
Forum Posts: 7
Member Since:
22/12/2008
sp_UserOfflineSmall Offline

Thank you for your answer, but how is it possible? I need to set custom tooltip for each cell and all of these tooltips must be different. Do you meen i must add separate class for each cell?

And other question: how can i add class for cell? Manually by javascript? But each cell doesn't have id.. 🙁

Thanks.

24/12/2008
22:21
Avatar
romka
Member
Members
Forum Posts: 7
Member Since:
22/12/2008
sp_UserOfflineSmall Offline

bump

27/12/2008
07:14
Avatar
mogenshoj
New Member
Members
Forum Posts: 2
Member Since:
17/12/2008
sp_UserOfflineSmall Offline

Each row does have an ID from 0-xx by default (top down). Or you can set it manually (json):

$responce->rows[0]['id'] = "this_row_id";
$responce->rows[0]['cell']=array("data_1", "data_2");

You can do it by XML too, check the docs for example.

Then use native jquery to fetch the cells in the row using children();

example:

alert($("#this_row_id").children().html()); // display first

alert($("#this_row_id").children().next().html()); // display second

alert($("#this_row_id").children().next().next().html()); // display third

Or use some foreach statement, whatever you like. Change/set classes too when you get the element you need.

If you're smart in setting it up, its shouldnt be too hard to create a function to create tooltips and get the content from AJAX. I you code each cell manually its gonna be a lot of work.

29/12/2008
03:39
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

The upcomming release fix this problem allowing to add custom tooltip.

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.

29/12/2008
03:54
Avatar
romka
Member
Members
Forum Posts: 7
Member Since:
22/12/2008
sp_UserOfflineSmall Offline

Thank you so much!

And Happy New Year!

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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