Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1405
Add tooltip to Grid
posted

Hi,

Can someone tell me how to add a tooltip on each cell of all the rows of parent and child grids of webhierarchicaldatagrid on client-side. Currently I am using this function:

function initGrid(grid, args) {
    
      var rows = grid.get_rows();
      var rowCount = rows.get_length();
      var cellCount = rowCount > 0 ? rows.get_row(0).get_cellCount() : 0;
      for (var r = 0; r < rowCount; ++r) {
         var row = rows.get_row(r);
         for (var c = 0; c < cellCount; ++c) {
             var cell = row.get_cell(c);
             var cellEl = row.get_cell(c).get_element();
             cellEl.title = "Message";
         }
     } 
  }

It adds the tooltip to parent rows but how to add the same message for all the child rows also.

Thanks,

Megha