I am trying to do a drag and drop shopping cart very similiar to the http://demos.telerik.com/aspnet-ajax/listbox/examples/functionality/templates/defaultcs.aspx
. I am using Item Templates with a style override of list tag to display inline creating a horizatal layout of products.
Currently I am pulling my data of products in using LingtoSql then binding the data with this:
| var db = new Products.ProductsDataContext();
| var floorthumbs = (from c in db.Floorings
| select c);
| RadListBox1.DataSource = skus;
I tried using <img class="product-image" src='Images/<%# DataBinder.Eval(Container, "Value")%>' />
to bind the image tag. I ended up dropping DataBinder.Eval to use just Eval to get image to display.
When I attempt to transfer an item from the Product list to the Detail View & Purchase, the RadListBox2 does not bind the image name.
What is the best method to duplicate the example with pulling in live data from a database?
Is it possible to load to the RadListBoxItem dynamiclly in the code behind?