Hi,
I have a radcombobox declared like this:
and I'm populating whith this code:
Everything seems to be allright butI'm unable to select an item . The dropdown show the elements but in the displayed text I always have:
"SampleProject.WebForm13+Fotos"
Am I doing something wrong? Where is my mistake?
Thanks!
I have a radcombobox declared like this:
<telerik:RadComboBox ID="RadComboBox1" Runat="server" Width="300" AppendDataBoundItems="True"> <ItemTemplate> <div class="item c1"><asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("URLImage") %>' /></div> <div class="item c2"><%# Eval("Imagename") %></div> </ItemTemplate></telerik:RadComboBox>and I'm populating whith this code:
RadComboBox1.DataSource = getimages()Function getimages() As List(Of Fotos) Dim ofile, foto Dim ObjetoFSO = Server.CreateObject("Scripting.FileSystemObject") Dim ObjetoFolder = ObjetoFSO.GetFolder(Server.MapPath("../images/works")) Dim ofotos = New List(Of Fotos) For Each ofile In ObjetoFolder.Files foto = New Fotos() foto.Imagename = fichero.name foto.URLImage = ResolveUrl("~/Images/works/thumbs/" & ofile.name) ofotos.Add(foto) Next file= Nothing ObjetoFolder = Nothing ObjetoFSO = Nothing Return ofotosEnd Function"SampleProject.WebForm13+Fotos"
Am I doing something wrong? Where is my mistake?
Thanks!