We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ListBox Databound vb.net question

Thread ID:





114091 Oct 28,2013 04:43 PM UTC Nov 12,2013 11:31 AM UTC Orubase 1
Tags: Orubase
Shawn Ramirez
Asked On October 28, 2013 04:43 PM UTC

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.

Aravindan V [Syncfusion]
Replied On November 12, 2013 11:31 AM UTC

  We have created a simple sample with custom list data binding in VB razor.
We have already having the below predefined classes specifically to use in template for multi-line list box. You can also make use of this or else you can write your own styles in sample level as per your requirement. Please refer the sample in the below attachment.






For title based template



For subject based template



For description based template



For time based template

Please try this and let us know if you have any queries.

Aravindan V



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon