I am exploring building forms dynamically.
I have gotten pretty far but I am of course battling an issue that could kill the whole concept.
I am creating the radcombo from text in a database, using the .net reflection class
thisAssembly As [Assembly] = [Assembly].GetExecutingAssembly()
Dim RefAssembly As AssemblyName
For Each RefAssembly In thisAssembly.GetReferencedAssemblies()
Dim refAssembly2 As Assembly = [Assembly].Load(RefAssembly.FullName.ToString())
Dim ct2 As Type = refAssembly2.GetType("Telerik.Web.UI.RadComboBox")
Dim c2 As Object = Activator.CreateInstance(ct2)
I am able to set most properties from information in the database like so:
Dim prop As PropertyInfo = t2.GetProperty("EnableLoadOnDemand")
Dim propval2 As Object = Convert.ChangeType("True", Type.[GetType]("System.Boolean"))
There is a property I would like to set that I am having trouble with.
The WebServiceSettings property is a class that does not contain a setvalue method.
I've tried creating an instance of the webservicesettings class, setting its properties and using that object to set the
webservicesettings property of the radcombobox, but to no avail.
I considered the approach of maybe using custom attributes to hold the path and method values and setting the corresponding properties client side but I didn't see that this was possible in the documentation and figured I had spent enough time on this to warrant posting and trying to get some direction.
Thanks in advance for your help.