jQWidgets Forums

jQuery UI Widgets Forums Grid Grid Cell Tooltip Shows on mouse over outside Grid

This topic contains 3 replies, has 2 voices, and was last updated by  prbvnky 9 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author

  • prbvnky
    Participant

    Hi Peter

    I tried to add tool tip to Grid cell by your suggestion on the another thread. Issue is its showing last visited tooltip when you mouse on the outer parts of the grid like pager or some times even in other cells when move mouse out and into the grid. Any Help?

    cellhover: function (element, pageX, pageY) {
                var cell = $('#jqxgrid').jqxGrid('getcellatposition', pageX, pageY);
                if (cell.column == "inParamsTxt") {
                     var tooltipContent = $(element).find(":first-child").attr('tooltip');
                     if(!isStrBlank(tooltipContent)) {
                    	 tooltipContent = "<div style='color: Green; text-align:left;'>" + tooltipContent + "</div>";
                      	$("#jqxgrid").jqxTooltip({ position: 'mouse', content: tooltipContent, opacity:1 });
                      	// open tooltip.
                      	$("#jqxgrid").jqxTooltip('open', pageX + 15, pageY + 15);
                     } else {
                    	 $("#jqxgrid").jqxTooltip('close');
                     }
                } else { 
               		$("#jqxgrid").jqxTooltip('close');
                }
            }

    prbvnky
    Participant

    Hi Peter

    I figured out that above thing only happens when I move mouse out and into the grid. Any help would be appreciated?

    Thanks again!


    Peter Stoev
    Keymaster

    Hi prbvnky,

    I would suggest you to take a look at few topics in the Forum and see how many people write and respond. It would be better for you, if you don’t start your topics with “Hi Peter”, if you want someone to reply to your topics, because I don’t watch all of them and reply only from time to time.

    Best Regards,
    Peter Stoev


    prbvnky
    Participant

    I will do that in future. Can any one help me with this please?

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.