Set RadDropDownTree SelectedItem Image
This sample of code is used to show in the selected item of a RadCombobox a IMAGE
<script language=
"javascript"
type=
"text/javascript"
>
function
showImageOnSelectedItemChanging(sender, eventArgs) {
var
input = sender.get_inputDomElement()
input.style.background =
"url("
+ eventArgs.get_item().get_imageUrl() +
") no-repeat"
;
input.style.paddingLeft =
"22px"
;
}
function
showFirstItemImage(sender) {
var
input = sender.get_inputDomElement()
input.style.background =
"url("
+ sender.get_items().getItem(0).get_imageUrl() +
") no-repeat"
;
input.style.paddingLeft =
"22px"
;
}
</script>
I want to do the same in a RadDropDownTree. It's possible?
Best Regards and many thanks in advance for your help