Ejemplo n.º 1
0
 /// <summary>
 /// UnknownColumn Constructor.
 /// </summary>
 /// <param name="columnName">The column name.</param>
 /// <param name="table">The table object.</param>
 public UnknownColumn(string columnName, Table table)
     : base(columnName, table)
 {
     Grid = table.m_Grid;
     m_Table = table;
     ColumnId = columnName;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Row">Row</see> class.
        /// </summary>
        /// <param name="table">The table that should contain this row.</param>
        ///<param name="createcells"></param>
        public Row(Table table, bool createcells)
        {
            m_Table = table;
            Cells = new RowCellCollection(this);

            if (createcells)
                foreach (Column column in Columns)
                    Cells.Add(new RowCell(column.ColumnId, this));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="WebGrid.Checkbox">Checkbox</see> class.
        /// </summary>
        /// <param name="columnName">The name of the column.</param>
        /// <param name="table">The grid.</param>
        public Checkbox(string columnName, Table table)
            : base(columnName, table)
        {
            Grid = table.m_Grid;
            m_Table = table;
            ColumnId = columnName;
            Searchable = false;

            Required = false;
            m_ColumnType = ColumnType.Checkbox;
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WebGrid.ManyToMany">ManyToMany</see> class.
 /// </summary>
 public ManyToMany()
 {
     IsInDataSource      = false;
     ManyToManyType      = ManyToManyType.Checkboxes;
     m_ForeignDataSource = new Table(null)
     {
         RetrieveForeignkeys = false
     };
     m_ColumnType = ColumnType.ManyToMany;
     Searchable   = false;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WebGrid.SystemColumn">SystemColumn</see> class.
 /// </summary>
 /// <param name="columnName">The column name.</param>
 /// <param name="columnType">The type of the column.</param>
 /// <param name="table">The table object.</param>
 public SystemColumn(string columnName, Enums.SystemColumn columnType, Table table)
     : base(columnName, table)
 {
     Grid = table.m_Grid;
     m_Table = table;
     ColumnId = columnName;
     IsInDataSource = false;
     GridAlign = HorizontalPosition.Left;
     Searchable = false;
     Sortable = false;
     SystemColumnType = columnType;
     m_ColumnType = ColumnType.SystemColumn;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WebGrid.ManyToMany">ManyToMany</see> class.
 /// </summary>
 /// <param name="columnName">The column name.</param>
 /// <param name="table">The table object.</param>
 public ManyToMany(string columnName, Table table)
     : base(columnName, table)
 {
     Grid                = table.m_Grid;
     m_Table             = table;
     ColumnId            = columnName;
     IsInDataSource      = false;
     ManyToManyType      = ManyToManyType.Checkboxes;
     m_ForeignDataSource = new Table(table.m_Grid)
     {
         RetrieveForeignkeys = false
     };
     Grid.Tables.Add(m_ForeignDataSource);
     m_ColumnType = ColumnType.ManyToMany;
     Searchable   = false;
 }
Ejemplo n.º 7
0
        internal override void CopyFrom(Column column)
        {
            base.CopyFrom(column);
            if (column.ColumnType != ColumnType.ManyToMany)
            {
                return;
            }
            ManyToMany mk = (ManyToMany)column;

            m_ForeignDataSource     = mk.m_ForeignDataSource;
            m_ValueColumn           = mk.m_ValueColumn;
            m_Manytomanytype        = mk.m_Manytomanytype;
            m_ForeignIdentityColumn = mk.m_ForeignIdentityColumn;
            m_MatrixidentityColumn  = mk.m_MatrixidentityColumn;
            m_MatrixDatasource      = mk.m_MatrixDatasource;
            m_FilterExpression      = mk.m_FilterExpression;
            ConnectionString        = mk.ConnectionString;
            m_TreeParentId          = mk.m_TreeParentId;
            m_RecordsPerRow         = mk.m_RecordsPerRow;
            m_SortExpression        = mk.m_SortExpression;
            m_CheckedAlias          = mk.m_CheckedAlias;
            m_UncheckedAlias        = mk.m_UncheckedAlias;
            m_MatrixTable           = mk.m_MatrixTable;
        }
Ejemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Row">Row</see> class.
 /// </summary>
 /// <param name="table">The table that should contain this row.</param>
 public Row(Table table)
 {
     m_Table = table;
     Cells = new RowCellCollection(this);
 }
Ejemplo n.º 9
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ColumnTemplate"/> class.
        /// </summary>
        /// <param name="columnName">Name of the column.</param>
        /// <param name="table">The table.</param>
        public ColumnTemplate(string columnName, Table table)
            : base(columnName, table)
        {

            Grid = table.m_Grid;
            m_Table = table;
            ColumnId = columnName;
            GridAlign = HorizontalPosition.Center;
            EditAlign = HorizontalPosition.Center;
            m_ColumnType = ColumnType.ColumnTemplate;
        }
Ejemplo n.º 10
0
 /// <summary>
 /// UnknownColumn Constructor.
 /// </summary>
 /// <param name="columnName">The column name.</param>
 /// <param name="table">The table object.</param>
 public ToolTipColumn(string columnName, Table table)
     : base(columnName, table)
 {
     ContentText = "Loading..";
     Text = "my tooltip";
     Grid = table.m_Grid;
     m_Table = table;
     ColumnId = columnName;
     m_ColumnType = ColumnType.ToolTip;
     HideMethod = HideMethod.click;
     ShowMethod = ShowMethod.click;
     ToolTipWidth = 200;
     ToolTipHeight = 50;
     CloseButtonText = "Close";
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WebGrid.ManyToMany">ManyToMany</see> class.
 /// </summary>
 /// <param name="columnName">The column name.</param>
 /// <param name="table">The table object.</param>
 public ManyToMany(string columnName, Table table)
     : base(columnName, table)
 {
     Grid = table.m_Grid;
     m_Table = table;
     ColumnId = columnName;
     IsInDataSource = false;
     ManyToManyType = ManyToManyType.Checkboxes;
     m_ForeignDataSource = new Table(table.m_Grid) { RetrieveForeignkeys = false };
     Grid.Tables.Add(m_ForeignDataSource);
     m_ColumnType = ColumnType.ManyToMany;
     Searchable = false;
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WebGrid.ManyToMany">ManyToMany</see> class.
 /// </summary>
 public ManyToMany()
 {
     IsInDataSource = false;
     ManyToManyType = ManyToManyType.Checkboxes;
     m_ForeignDataSource = new Table(null) { RetrieveForeignkeys = false };
     m_ColumnType = ColumnType.ManyToMany;
     Searchable = false;
 }
Ejemplo n.º 13
0
 internal override void CopyFrom(Column column)
 {
     base.CopyFrom(column);
     if (column.ColumnType != ColumnType.ManyToMany) return;
     ManyToMany mk = (ManyToMany)column;
     m_ForeignDataSource = mk.m_ForeignDataSource;
     m_ValueColumn = mk.m_ValueColumn;
     m_Manytomanytype = mk.m_Manytomanytype;
     m_ForeignIdentityColumn = mk.m_ForeignIdentityColumn;
     m_MatrixidentityColumn = mk.m_MatrixidentityColumn;
     m_MatrixDatasource = mk.m_MatrixDatasource;
     m_FilterExpression = mk.m_FilterExpression;
     ConnectionString = mk.ConnectionString;
     m_TreeParentId = mk.m_TreeParentId;
     m_RecordsPerRow = mk.m_RecordsPerRow;
     m_SortExpression = mk.m_SortExpression;
     m_CheckedAlias = mk.m_CheckedAlias;
     m_UncheckedAlias = mk.m_UncheckedAlias;
     m_MatrixTable = mk.m_MatrixTable;
 }