How to select all rows of FeatureTable 4.16 after it loads?

930
3
Jump to solution
07-14-2020 11:47 PM
Ranga_Tolapi
Occasional Contributor III

How to select all rows of FeatureTable 4.16 after it loads?

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
          featureTable.viewModel.watch("state", function (state) {
            if (state === "ready") {
              featureLayer.queryObjectIds().then(function (ids) {
                featureTable.selectRows(ids);
              });
            }
          });

View solution in original post

3 Replies
RobertScheitlin__GISP
MVP Emeritus
          featureTable.viewModel.watch("state", function (state) {
            if (state === "ready") {
              featureLayer.queryObjectIds().then(function (ids) {
                featureTable.selectRows(ids);
              });
            }
          });
Ranga_Tolapi
Occasional Contributor III

This worked like a charm. Thank you so much Robert Scheitlin, GISP

0 Kudos
LefterisKoumis
Occasional Contributor III

Robert, how can you add a checkbox at the column header so I can use it as select/deselect all records.

LefterisKoumis_0-1660078994953.png

 

0 Kudos