I’m writing an app with the scheduler for ASP.NET in VB.NET
Here’s the server side code for a lightbox select that I’m adding. The options are pulled from the db and into an iEnumerable of lightboxSelectionOption by the shared helper method in the code block bellow.
Dim ddlLocation As LightboxSelect = New LightboxSelect("offLocations", "Office Location")
ddlLocation.MapTo = "location"
ddlLocation.Height = 30
ddlLocation.AddOptions(DropDownListHelpers.CreateLocationsDropDownListOptions)
Scheduler.Lightbox.Add(ddlLocation)
When I run the app, the options in the select have “undefined” as their keys and labels. It works when the options are added separately with the AddOption() method, but not the method the takes an enumerable of options.