After you add the layer to the group you can call Update on the TOC.
sir i populate all the feature layer in toc but unable to group that layer please help me out
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.