In RadDropDownListElement add two DescriptionTextListDataItem:
radDropDownListElementFoo.Items.Add(new DescriptionTextListDataItem("Foo 1", "Description 1"));
radDropDownListElementFoo.Items.Add(new DescriptionTextListDataItem("Foo 2", "Description 2"));
But the description is not displayed and the drop down height is too large (foo.png)
What am I doing wrong?
If change ItemHeight = 36, then description is displayed, but the drop down height is too large (foo36.png)
Currently, the possible solution that I can suggest is to adjust the ItemHeight property and specify the maximum size of the drop down:
this.radDropDownListElement1.ItemHeight = 40;this.radDropDownListElement1.DropDownMaxSize = new Size(this.radDropDownListElement1.Size.Width,this.radDropDownListElement1.ItemHeight * this.radDropDownListElement1.Items.Count + 1);
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik