protected override WebControl CreateEditModeControlCore()
        {
            if (!AllowEdit)
            {
                return(new LabelControl(new ASPxLabel()));
            }
            ASPxMemo memo = RenderHelper.CreateASPxMemo();

            memo.Rows         = Model.RowCount;
            memo.MaxLength    = MaxLength;
            memo.TextChanged += MemoOnTextChanged;
            return(memo);
        }
Exemple #2
0
        protected override WebControl CreateEditModeControlCore()
        {
            var asPxTokenBox = new ASPxTokenBox {
                ID = "ASPxTokenBox_control",
                IncrementalFilteringMode = IncrementalFilteringMode.Contains,
                ShowDropDownOnFocus      = ShowDropDownOnFocusMode.Never,
                AllowCustomTokens        = false,
                Width = new Unit("100%")
            };

            RenderHelper.SetupASPxWebControl(asPxTokenBox);
            asPxTokenBox.TokensChanged += EditorOnTokensChanged;
            return(asPxTokenBox);
        }