NoSpacial Table Added To Map.Tables Would Not Raised The Event LoadStatusChanged

386
1
01-14-2019 07:28 PM
xiaoguangyan
New Contributor III

Hello,

A problem occured when I call the ServiceFeatureTable.LoadStatusChanged, It would not raise the event,

var serviceTable = new ServiceFeatureTable(new Uri("")) { FeatureRequestMode = FeatureRequestMode.ManualCache };

serviceTable .LoadStatusChanged += serviceTable _LoadStatusChanged;
CurrentMap.Tables.Add(serviceTable );

0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor

Adding the table to Map will not trigger table load, unlike when table is added as layer to the Map because it would at least try to render the features based on map extent. This is because non-spatial table is not in use unless you were to query it. Table will load upon query if you hadn't already explicitly called table.LoadAsync(). But in the case of ManualCache, this table will be empty until you have called PopulateFeaturesAsync().

0 Kudos