Ejemplo n.º 1
0
        public void ApplyTreeListSettings(TreeListSettings treeListSettings)
        {
            if (treeListSettings == null)
            {
                return;
            }

            this.model.ApplyGroupExpansionState(treeListSettings.GroupExpansions);
        }
Ejemplo n.º 2
0
        public TreeListSettings GenerateTreeListDefaultSettings(TreeListSettings settings)
        {
            settings.Width = Unit.Percentage(100);
            settings.CommandColumn.NewButton.Text        = "<i class=\"fa fa-plus\"></i> ";
            settings.CommandColumn.DeleteButton.Text     = "<i class=\"fa fa-trash-o\"></i> ";
            settings.CommandColumn.EditButton.Text       = "<i class=\"fa fa-pencil\"></i> ";
            settings.CommandColumn.UpdateButton.Text     = "<i class=\"fa fa-check\"></i> ";
            settings.CommandColumn.CancelButton.Text     = "<i class=\"fa fa-minus-circle\"></i> ";
            settings.SettingsBehavior.AutoExpandAllNodes = false;
            settings.SettingsBehavior.AllowFocusedNode   = true;
            settings.CommandColumn.Width = Unit.Pixel(90);

            settings.SettingsEditing.ConfirmDelete = true;
            settings.SettingsText.ConfirmDelete    = Resources.TextConfirmDelete;
            settings.Settings.GridLines            = GridLines.Both;

            return(settings);
        }