FeatureTable events for cell selection and hover

402
2
Jump to solution
07-08-2019 07:45 AM
Buckler_Tom
New Contributor

I'm using the JS API 3.29 and a FeatureTable. I would like to be able to fire events on individual cells rather than an entire row. But the only documented events are for entire rows. I found this thread where Robert Scheitlin, GISP suggested using an event based on the grid's header using mouseover, but I can't get any events like that to work, using the headers or cells or anything. Does it have something to do with using a FeatureTable rather than a base Dojo dgrid?

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

Tom,

   You can do the same thing with a FeatureTable.

          on(myFeatureTable, "load", function(evt){
            myFeatureTable.grid.on("th.field-Spp_Code:mouseover", function(){
              console.info("hover");
              //do your tooltip here
            });
          });

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

Tom,

   You can do the same thing with a FeatureTable.

          on(myFeatureTable, "load", function(evt){
            myFeatureTable.grid.on("th.field-Spp_Code:mouseover", function(){
              console.info("hover");
              //do your tooltip here
            });
          });
0 Kudos
Buckler_Tom
New Contributor

Ah ok, because the grid (a dgrid) is a property of the FeatureTable. That makes sense. Thank you!

0 Kudos