I have read the documentation on the ResponsiveList control, but I still do not have the desired functionality. I am close, but need a few answers to complete my testing. I am using the data-aware version of the control.
1. Does the control only support Bitmap images? I followed the example on BLOBS, but I get an error stating that the bitmap image is not correctly formatted. The field contains PNG formatted images.
2. Is there a way to display a static image? I tried inserting an IMG tag into the Data Template, but the image never shows.
3. How do you get the values of the selected item?
4. How do you get values for an item when it is clicked?
5. If I add a button to the data template, how do I access the values for the row on a button click?
Bart,
I appreciate the detailed response and included example. That made all of the difference for my test.
1. There is NOT a problem displaying images in PNG format. I was able to isolate my problem down to a specific record. It was definitely a data problem.
I used the Northwind sample database, Employees table. While getting that working I also discovered how to format the image with text aligned to the right.
TIWDBResponsiveList1.DataTemplate.Add('<img src="<#Photo>"; style="float: left; margin: 5px;";>');
2. I got the static image display working when I used an external URL for the image. I was not able to get it to work with a file inside the projects wwwroot\files folder, but I think that is related to something else. I will try to resolve that elsewhere.
3,4 & 5. All worked exactly as you described and demonstrated in the example.
Daniel,
About (2), for an example you can have a look at the non-DB ResponsiveList demo in the TMSIWFeaturesDemo App which uses static images. The same technique should also work for the TIWDBResponsiveList.