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

[Solved] radcomboxitem imagepath

1 Answer 92 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
jtby
Top achievements
Rank 1
jtby asked on 08 Apr 2008, 03:55 PM
Hi - How do you make a simple radcombobox with images in it?  I follow the example at:

http://www.telerik.com/demos/aspnet/prometheus/ComboBox/Examples/Default/DefaultCS.aspx

... shown below, and it does not work.  Error it gives is "imagepath is not a valid attribute of element radcomboboxitems.


<telerik:RadComboBox

ID="RadComboBox_Broker" runat="server"

Width="200px" Height="115px"

Skin="Vista"

MarkFirstMatch="false" HighlightTemplatedItems="True"

ShowToggleImage="True" AllowCustomText="false" EnableLoadOnDemand="false">

<ItemTemplate>

<div class="qsfexBrokerView">

<img class="qsfexBrokerPic" src='Images/people/<%# DataBinder.Eval(Container, "Attributes['ImagePath']") %>' alt="" />

<span class="qsfexBrokerName"><%# DataBinder.Eval(Container, "Text") %></span>

</div>

</ItemTemplate>

<Items>

<telerik:RadComboBoxItem

ImagePath="images/black.gif"

Text="Florence Osbourne">

</telerik:RadComboBoxItem>

<telerik:RadComboBoxItem

ImagePath="pic2.jpg"

Text="Ildó Zinnia">

</telerik:RadComboBoxItem>

<telerik:RadComboBoxItem

ImagePath="pic3.jpg"

Text="Josephine Steph">

</telerik:RadComboBoxItem>

<telerik:RadComboBoxItem

ImagePath="pic4.jpg"

Text="Abe Rodney">

</telerik:RadComboBoxItem>

</Items>

</telerik:RadComboBox>

1 Answer, 1 is accepted

Sort by
0
jtby
Top achievements
Rank 1
answered on 08 Apr 2008, 04:18 PM
hey never mind, I see how it works when it runs.  I get it now.

JB
Tags
General Discussions
Asked by
jtby
Top achievements
Rank 1
Answers by
jtby
Top achievements
Rank 1
Share this question
or