Esempio n. 1
0
        public override void ConfigureColumns(ColumnConfiguration columnConfig)
        {
            foreach (var col in ColumnsToShowInView)
            {
                columnConfig.AddStringColumn(col.Value, col.Key);
            }

            foreach (var col in AdditionalColumns)
            {
                columnConfig.AddColumn(col);
            }

            columnConfig.AddLinkColumn("", "Id", "Edit", Id + 1);

            columnConfig.AddButtonColumn("", "Id", "X",
                                         new UserConfirmation("Delete " + ItemName + "?")
            {
                OnConfirmationUIAction = Id + 2
            },
                                         new ShowHideColumnSetting()
            {
                Display    = ColumnDisplayType.Show,
                Conditions = new List <Condition>()
                {
                    new Condition("CanDelete", Comparison.Equals, "true")
                }
            }
                                         );
        }