How to detect if a Layout is a default one or a custom one?

Hi,

I’m using ConfigAPIClient sample as a code base for a new app for creating / deleting / modifying layouts.

As far as I know I cannot touch the pre-defined layout: I can only add / delete / modify custom layouts in pre-defined folders/groups.

I’m using the treeView code from ConfigAPIClient sample to display the existing layouts, including both pre-defined ones and custom ones.

Is there a way (a property, some method?) to detect if a treeView node, which is embedding a VideoOS.ConfigurationAPI.ConfigurationItem beloging to a layout, is beloging to a pre-defined layout or a custom one?

I need to be able to enable ContextMenu only for custom layout treeView nodes.

If necessary, during the treeView creation, I can add data from the original ConfigurationItem to the node, in order to be able later to detect its kind.

Unfortunately, there is no way of detecting these two types of layout. Possibly you can implement custom filtering mechanism on standard property e.g. name, id, description, etc. The layout can also be added to the VMS using strongly typed Configuration API classes.

https://doc.developer.milestonesys.com/html/samples/configaddlayouts.html