Search results

Custom Tooltip for columns in Vue Grid component

To display custom ToolTip (EJ2 Tooltip) you can render the Grid control inside the Tooltip component and set the target as .e-rowcell. The tooltip is displayed when hovering the grid cells.

Change the tooltip content for the grid cells by using the following code in the mouseover event.

tooltipcontent(args) {
  this.$refs.grid.$el.addEventListener("mouseover", args => {
    if ("td")) {
      this.$refs.tooltip.content =; // changing the tooltip content with the cell value
    <div id="app">
    <ejs-tooltip ref="tooltip" target=".e-rowcell">
      <ejs-grid ref="grid" :dataSource="data" :load="tooltipcontent" height="315px">
          <e-column field="OrderID" headerText="Order ID" textAlign="Right" width="90"></e-column>
          <e-column field="CustomerID" headerText="Customer ID" width="120"></e-column>
          <e-column field="Freight" headerText="Freight" textAlign="Right" format="C2" width="90"></e-column>
          <e-column field="ShipName" headerText="Ship Name" width="120"></e-column>
import Vue from "vue";
import { GridPlugin } from "@syncfusion/ej2-vue-grids";
import { data } from './datasource.js';
import { TooltipPlugin } from "@syncfusion/ej2-vue-popups";


  export default {
    data() {
      return {
        data: data
    methods: {
      tooltipcontent: function (args) {
        this.$refs.grid.$el.addEventListener("mouseover", args => {
          if ("td")) {
           this.$refs.tooltip.content =;
@import "../node_modules/@syncfusion/ej2-vue-grids/styles/material.css";