How would one refresh a Javascript FeatureTable digit after adding or updating a feature in the underlying FeatureTable?
Did you guys ever resolve this issue? I'm trying to get the feature table to refresh after changing the visibility of the feature layer.
Hi Keith,
I stumbled on some code in one of the Esri samples that works for refreshing a FeatureTable. I would have thought this would be a method call on the FeatureTable itself, but anyway. You basically need to destroy the div that contains your feature table and then recreate it on the fly. It's working like a charm for me. The outageDiv referenced below is the parent div of the div that contains the FeatureTable.
if (registry.byId("outageTableNode")) {
registry.byId("outageTableNode").destroy();
domConstruct.create("div", { id: "outageTableNode" }, dom.byId("outageDiv"));
console.log("re-creating table");
}
Ok thanks. I'm leaning that way also.
No answer. Sorry. I ended up ditching it in favor of using dGrid.
Keith -
Did you get an answer for this? I've been trying to resolve it for a couple of days.
I'd also be interested in getting this answered.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.