How do I read the content of my item template on the server side by looping thru my collection of RadListBoxItems?
Suppose I have a template as follows:
So in VB.NET in the code behind I expect to be able to do something like this:
Any insight appreciated, thanks!
- David
Suppose I have a template as follows:
| <ItemTemplate> |
| <div id="TheValue" runat="server">> |
| Test Id: |
| <%#DataBinder.Eval(Container, "Value")%> |
| <br /> |
| </div> |
| <div id="TheText" runat="server"> |
| Name: |
| <%#DataBinder.Eval(Container, "Text")%> |
| <br /> |
| </div> |
| <div id="dateadded" runat="server"> |
| Date Added: |
| <%=DateTime.Now.ToShortDateString()%> |
| </div> |
| <hr style="height: 1px; border-color: Black; border-style: solid; width: 95%" /> |
| </ItemTemplate> |
So in VB.NET in the code behind I expect to be able to do something like this:
| For Each item As RadListBoxItem In RadListBoxDestination.Items |
| 'Grab variables from ItemTemplate (e.g. dateadded ) and do stuff |
| Next |
Any insight appreciated, thanks!
- David