Dear,
I''ve created a template collection for the webdropdown where the user can select from. User has to select a rating by the number of stars
This works fine, but is would be much nicer if I could show the selected value as the picture instead of the text '1 star' Is this possible to do? Showing the picture as the selected value in the box instead of the text?
Hi Angel,
Thanks for the hint. I will try that out. (and i hope you guys will add this directly to the control in the future :-) )
Hi,
I am afraid this is currently not possible. The input element is always rendered as part of the editable area of the control and is of type=text (and can therefore only hold text). What you are suggesting is indeed a very nice feature and we will add it to our feature backlog - being able to template the editable area.
In fact i can think of a workaround that will maybe make your scenario achievable, even with the current set of functionality. The idea is to assign a background image to the input element, and align it to the left, as it is demonstrated in this link:
http://www.dhtmlgoodies.com/index.html?whichTipsAndTricks=input-with-background
You can then use the SelectionChanged event to replace the background image:
this._elements["Input"].style.backgroundImage = '' ... ";
Hope it helps. Thanks for your feedback,
Angel