EasyUI Forum
May 08, 2024, 11:13:39 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: no (jQuery)Tooltip within datagrid?  (Read 13355 times)
digo
Newbie
*
Posts: 26


View Profile
« on: May 09, 2012, 04:13:29 AM »

Hi!

I tried to add a jquery-tooltip plugin to a website.

Outside my datagrid the tooltip works fine:



I have added the same html-code to my json-file, but within a datagrid the tooltip does not work:



You can find the demo.html here:
http://www.mbsip.com/easyui/demo.html

Any suggestions?

Ciao
Digo
Logged
Kevin
Jr. Member
**
Posts: 52


View Profile Email
« Reply #1 on: May 09, 2012, 08:26:22 AM »

Hi Digo

I think the problem is that the table is being created after the call to setup the tooltips. Thus not HTML exists for the table. The way I could see this was in Firebug. I put a break point at '$('.demo-async-timeout').poshytip({' and noticed that only the header of the table was drawn. You could call the code '$('.demo-basic').poshytip();'  after the table has been rendered. ie add onLoadSuccess: method.

I did implement my own tooltip and noticed that I had to increase the z-index value for the tooltip div. So if you no longer see the tooltip, but can see the code in Firebug, try increasing the z-index.
Logged
digo
Newbie
*
Posts: 26


View Profile
« Reply #2 on: May 09, 2012, 11:30:44 PM »

Hi Kevin,

thanks! That´s it! Working fine now!

Ciao
Digo
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!