Ejemplo n.º 1
0
        private static void OnIsEnabledPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
        {
            RadGridView grid = dependencyObject as RadGridView;

            if (grid != null)
            {
                if ((bool)e.NewValue)
                {
                    RadGridViewSettings settings = new RadGridViewSettings(grid);
                    settings.Attach();
                }
            }
        }
Ejemplo n.º 2
0
            public RadGridViewApplicationSettings(RadGridViewSettings settings)
            {
                this.settings = settings;

                List <Type> types = new List <Type>();

                types.Add(typeof(List <ColumnSetting>));
                types.Add(typeof(List <FilterSetting>));
                types.Add(typeof(List <GroupSetting>));
                types.Add(typeof(List <SortSetting>));
                types.Add(typeof(List <PropertySetting>));

                this.serializer = new DataContractSerializer(typeof(RadGridViewApplicationSettings), types);
            }