Exemplo n.º 1
0
        internal IList <ViewColumn> DoConfigureColumns(IList <int> allowedUserEvents)
        {
            var config = new ColumnConfiguration();

            ConfigureColumns(config);

            var columns = config.GetColumns().Where(c => AllowColumn(c, allowedUserEvents)).ToList();

            return(columns);
        }
Exemplo n.º 2
0
        public override void ConfigureColumns(ColumnConfiguration columnConfig)
        {
            columnConfig.AddLinkColumn(String.Empty, GetIdColumnName(), String.Empty, GetDetailViewEventNumber());
            columnConfig.AddStringColumn(String.Empty, GetHeadingColumnName());
            var detailColumns = GetDetailColumnNames() ?? new List <string>();

            foreach (var col in detailColumns)
            {
                columnConfig.AddStringColumn(String.Empty, col);
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// Configure columns for the view.
 /// </summary>
 /// <param name="columnConfig"></param>
 public abstract void ConfigureColumns(ColumnConfiguration columnConfig);
Exemplo n.º 4
0
 public override void ConfigureColumns(ColumnConfiguration columnConfig)
 {
     //do nothing
     columnConfig.AddHiddenColumn("val"); // just to get 1 column
 }