Hello,
I've used the RadDropDownList with style "DropDown". So I can use the autocomplete behavior. So far so good.
Each progammatically added item has an image (48x48). Wenn I opens the dropdown the items will be displayed with image.
But when I enter some text the matched items in the dropdown will be not displayed with image. Why?
Also the selected item will be not displayed with image. Only when I change the dropdown style to "DropDownList" the image will be displayed also. But then there is no possibility to use autocomplete behavior. That's bad.
As workaround I change the dropdown style on the fly. When clicking the control I change the style like:
Now I can use the autocomplete behavior.
And in SelectedIndex_Changed event method I change the style to "DropDownList" like:
Then the selected item image will be displayed.
Cool. But I need to display the image of matched items in dropdown when entering text using the autocomplete behavior.
How to?
Regards,
Ralf
I've used the RadDropDownList with style "DropDown". So I can use the autocomplete behavior. So far so good.
Each progammatically added item has an image (48x48). Wenn I opens the dropdown the items will be displayed with image.
But when I enter some text the matched items in the dropdown will be not displayed with image. Why?
Also the selected item will be not displayed with image. Only when I change the dropdown style to "DropDownList" the image will be displayed also. But then there is no possibility to use autocomplete behavior. That's bad.
As workaround I change the dropdown style on the fly. When clicking the control I change the style like:
private
void
CountrySelector_MouseClick(
object
sender, MouseEventArgs e)
{ this
.CountrySelector.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDown;
this
.CountrySelector.DropDownListElement.ShowImageInEditorArea =
false
;
}Now I can use the autocomplete behavior.
And in SelectedIndex_Changed event method I change the style to "DropDownList" like:
private
void
CountrySelector_SelectedIndexChanged(
object
sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e)
{
this
.CountrySelector.DropDownListElement.ShowImageInEditorArea =
true
;
this
.CountrySelector.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
}
Then the selected item image will be displayed.
Cool. But I need to display the image of matched items in dropdown when entering text using the autocomplete behavior.
How to?
Regards,
Ralf