I am currently working with the ArcGIS Online Portal. I load a map document from our portal, iterate through the layers and add them to a group layer. However, when added to the map, I can select several child layers of the group layer, but I can't deselect them. Adding each layer individually without using group layer works fine, they then behave as any other layer in the map content list. I add many different types of layers to one group layer (tiled layers, feature layers and so on). I've tried to group layers by type but it still behaves the same way. Each layer has a unique ID. The provided image displays the behavior.How can I achieve the same behavior as a map service (no child layers are selectable)? GroupLayer groupLayer = new GroupLayer(); groupLayer.ID = Guid.NewGuid().ToString(); groupLayer.DisplayName = portalItem.Title; foreach (Layer layer in selectedMap.Layers) { if (Document.GetIsBaseMap(layer) && (selectedMap.Layers.Count > 1)) continue; layer.ID = layer.ID ?? Guid.NewGuid().ToString(); layer.InitializationFailed += Layer_InitializationFailed; if (string.IsNullOrEmpty(layer.DisplayName)) MapApplication.SetLayerName(layer, layer.ID); groupLayer.ChildLayers.Add(layer) } selectedMap.Layers.Clear(); MapApplication.Current.Map.Layers.Add(groupLayer); foreach (Layer layer in groupLayer.ChildLayers) MapApplication.SetLayerName(layer, layer.DisplayName); MapApplication.SetLayerName(groupLayer, portalItem.Title + " [Portal]"); selectedMap = null;