I need to display a list of news items as a dropdown. I am trying to create a news list template for use in the control when needed. I do not really care if it is a dropdown or a combo box as long as it acts like a dropdown (is the combobox lockable to prevent typing?). I know the dropdown can use templates, but I am getting something wrong (error parsing template).
don't know if i am doing this correctly, but I have made a little progress with the below.
I know that I should not be putting the Details Hyperlink object in the option like that, but that is how I get the text to show for the option (it does not rending anything but text). Now I need to be able to get the URL the object would normally render. Any help you can give would be greatly appreciated!
You can receive url of news like that: <%# Eval("UrlName")%>">
You can receive news title: <%# Eval("Title")%>
For example, if you want to render option tag with news url inside value attribute, you need to use it like that
Thank you so much for the help! It got me a lot closer. So the remaining issue is the URL. The UrlName gives just the last part. I am a little closer with the below. However, I need to get the parent UrlName. I have seen references to Parent.UrlName, but the template chokes when I stick that in an eval. Is there an easy way to get it?
So I finally came up with a solution with a little help from Telerik. I am posting it here in case it is of benefit to anyone else looking to do the same or similar. The hard thing for me to find was ItemDefaultUrl. Once I figured out how to get that, the rest came together.