This is a migrated thread and some comments may be shown as answers.

strange border appears when inherit from raddropdownlist

2 Answers 52 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Frank Beerens
Top achievements
Rank 1
Frank Beerens asked on 19 Jul 2013, 10:14 AM
Hello,

I created a new combobox class and used the RadDropDownList as base class, but when I override the CreateDropDownListElement function and return my own element, a black border appears:

public class TestComboBox : RadDropDownList
    {
        public override string ThemeClassName
        {
            get
            {
                return typeof(RadDropDownList).FullName;
            }
            set
            {
                base.ThemeClassName = value;
            }
        }
 
        protected override RadDropDownListElement CreateDropDownListElement()
        {
            //return base.CreateDropDownListElement();
            return new TestElement(this);
        }
    }
 
    public class TestElement : RadDropDownListElement
    {
        public TestElement()
        {
            //
        }
 
        public TestElement(object owner)
            : base(owner)
        {
            //
        }
 
    }

2 Answers, 1 is accepted

Sort by
0
Frank Beerens
Top achievements
Rank 1
answered on 19 Jul 2013, 12:47 PM
Never mind... I have the solution: inherit from RadDropDownListEditorElement
0
Stefan
Telerik team
answered on 24 Jul 2013, 09:43 AM
Hi Frank,

I am glad you have found a solution for your case. For more information about it take a look at the following article.
 

Regards,
Stefan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
DropDownList
Asked by
Frank Beerens
Top achievements
Rank 1
Answers by
Frank Beerens
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or