I am trying to to use the orubase listbox control in razor. I have a list(of dc.calendar), a custom list, that I want to bind the listbox to.
I believe my controller is fine with CalendarController.vb having
<HttpGet> _
Public Function List() As ActionResult
Dim lst As New List(Of dcBase.Calendar)
Dim fact As New dcBase.CalendarFactory
lst = fact.Load(288)
Return View(lst)
End Function
However, I can't figure out how the vb/razor code should look to use the Views/Calendar/List.vbhtml
The html.orubase.listbox is a shared control so I can't do an old fashioned
"for each item in Model" correct? I am interested in doing a multi-line listbox as is demonstrated in your UserGuide under "ListBox" in the Template section.
Most of the UI controls I have worked with in the past have don't have everything being done in a single line of code with .function().function1().function2 like your examples so it looks a bit daunting and confusing for my first MVC project.
I would be grateful for any help.
Shawn