Example #1
0
        public ParametrizedActionDateRangeControl(ActionContainerOrientation orientation)
        {
            _button = RenderHelper.CreateASPxButton();
            _button.AutoPostBack        = false;
            _button.Click              += button_Click;
            _button.EnableClientSideAPI = true;
            _button.ID = "B";
            Control editor = CreateEditorBody();

            editor.ID  = "Ed";
            label      = RenderHelper.CreateASPxLabel();
            label.ID   = "L";
            label.Wrap = DevExpress.Utils.DefaultBoolean.False;
            Table table = RenderHelper.CreateTable();

            table.CssClass = "ParametrizedActionControl";
            table.ID       = "T";
            labelCell      = new TableCell();
            TableCell editorCell = new TableCell();
            TableCell buttonCell = new TableCell();

            FillTemplateTable(orientation, table, labelCell, editorCell, buttonCell);
            labelCell.Controls.Add(label);
            labelCell.CssClass = "ControlCaption";
            editorCell.Controls.Add(editor);
            editorCell.CssClass = "Label";
            buttonCell.Controls.Add(_button);
            buttonCell.CssClass = "Editor";
            Controls.Add(table);
        }