I have successfully used a RadComboBox on an MVC 2 View page (using Visual Studio 2010).
I needed to use one inside an MVC user control so added a RadComboBox and RadScriptManager to it ...
but I get an error appearing in the design view of the user control for both the RadComboBox and the RadScriptManager
"Value cannot be null. Parameter name: frameworkName" -- see attached screenshot.
It runs ok but the combo box in the user control is unresponsive - it doesn't respond to a clicking on it.
Here is the code below for the user control (.ascx)
Some help would be appreciated,
Thanks,
Harvey
I needed to use one inside an MVC user control so added a RadComboBox and RadScriptManager to it ...
but I get an error appearing in the design view of the user control for both the RadComboBox and the RadScriptManager
"Value cannot be null. Parameter name: frameworkName" -- see attached screenshot.
It runs ok but the combo box in the user control is unresponsive - it doesn't respond to a clicking on it.
Here is the code below for the user control (.ascx)
Some help would be appreciated,
Thanks,
Harvey
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BHPAHM.Models.InspectionSearchViewData>" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> <% using (Html.BeginForm()) {%> <%: Html.ValidationSummary(true) %> <table> <tr> <td> <div class="editor-label"> Entry Type </div> </td> <td> <div class="editor-field"> <%: Html.DropDownListFor(model => model.EntryTypeId, new SelectList(Model.EntryTypes, "ID", "Name"))%> <%: Html.ValidationMessageFor(model => model.EntryTypeId)%> </div> </td> </tr> <tr> <td> <div class="editor-label"> Location </div> </td> <td> <div class="editor-field"> <%: Html.DropDownListFor(model => model.LocationId, new SelectList(Model.Locations, "ID", "Name"))%> <%: Html.ValidationMessageFor(model => model.LocationId)%> </div> </td> </tr> <tr> <td> <div class="editor-label"> Equipment </div> </td> <td> <div class="editor-field"> <%: Html.DropDownListFor(model => model.EquipmentId, new SelectList(Model.Equipment, "ID", "Name"))%> <%: Html.ValidationMessageFor(model => model.EquipmentId)%> </div> </td> </tr> <tr> <td> <div class="editor-label"> Inspection Type </div> </td> <td> <div class="editor-field"> <%: Html.DropDownListFor(model => model.InspectionTypeId, new SelectList(Model.InspectionTypes, "ID", "Name"))%> <%: Html.ValidationMessageFor(model => model.InspectionTypeId)%> </div> </td> </tr> <tr> <td> Example RadComboBox </td> <td> <telerik:RadComboBox ID="RadComboBox1" Runat="server"> <Items> <telerik:RadComboBoxItem Text="One" Value="1" /> <telerik:RadComboBoxItem Text="Two" Value="2" /> <telerik:RadComboBoxItem Text="Three" Value="3" /> <telerik:RadComboBoxItem Text="Four" Value="4" /> </Items> </telerik:RadComboBox> <telerik:RadScriptManager ID="RadScriptManager1" runat="server" > </telerik:RadScriptManager> </td> </tr> </table> <p> <input type="submit" value="Search" /> </p> <p> Property1 = <%: ViewData["Property1"] %> <br /> Property2 = <%: ViewData["Property2"] %> </p> <% } %>