Пример #1
0
        public void AddNavigationHidden()
        {
            GxContext ctx = ((GxContext)context);

            if (ctx.IsLocalStorageSupported())
            {
                HiddenValues.Put("GX_CLI_NAV", "true");
                GXNavigationHelper nav = ctx.GetNavigationHelper();
                if (nav != null && nav.Count() > 0)
                {
                    string sUrl       = ctx.GetRequestNavUrl().Trim();
                    int    popupLevel = nav.GetUrlPopupLevel(sUrl);
                    HiddenValues.Put("GX_NAV", nav.ToJSonString(popupLevel));
                    nav.DeleteStack(popupLevel);
                }
            }
        }