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();
        }
        public override void OnPageAdded()
        {
            if (PersistGridsState)
            {
                string         id       = GetType().FullName;
                WindowSettings settings = WindowSettings.GetByWindowId(id);
                if (settings != null)
                {
                    ColumnSerializer.LoadColumnSettings(this, settings);
                }
            }

            base.OnPageAdded();
        }