Beispiel #1
0
        protected override void OnPageClose()
        {
            if (PersistGridsState)
            {
                string         id       = GetType().FullName;
                WindowSettings settings = WindowSettings.GetByWindowId(id) ?? new WindowSettings {
                    WindowId = id
                };
                ColumnSerializer.SaveColumnSettings(this, settings);
            }

            base.OnPageClose();
        }
Beispiel #2
0
        public override void OnPageAdded()
        {
            if (PersistGridsState)
            {
                string         id       = GetType().FullName;
                WindowSettings settings = WindowSettings.GetByWindowId(id);
                if (settings != null)
                {
                    ColumnSerializer.LoadColumnSettings(this, settings);
                }
            }

            base.OnPageAdded();
        }