Aug 30, 2013, 8:24 PM
[CLOSED] Ambiguous call between ComboBoxBase.Builder methods (string) and (params string[]) in a PartialView
I don't know if I am just being block headed or if I have another version of a bug similar to this:
http://forums.ext.net/showthread.php...(Razor-syntax)
When I run the same code in a view that is not a partialview I get no errors, but when it is partial I get the following error:
The call is ambiguous between the following methods or properties: 'Ext.Net.ComboBoxBase.Builder<Ext.Net.ComboBox,Ext .Net.ComboBox.Builder>.Items(string)' and 'Ext.Net.ComboBoxBase.Builder<Ext.Net.ComboBox,Ext .Net.ComboBox.Builder>.Items(params string[])'
This is my code
Controler:
http://forums.ext.net/showthread.php...(Razor-syntax)
When I run the same code in a view that is not a partialview I get no errors, but when it is partial I get the following error:
The call is ambiguous between the following methods or properties: 'Ext.Net.ComboBoxBase.Builder<Ext.Net.ComboBox,Ext .Net.ComboBox.Builder>.Items(string)' and 'Ext.Net.ComboBoxBase.Builder<Ext.Net.ComboBox,Ext .Net.ComboBox.Builder>.Items(params string[])'
This is my code
Controler:
public ActionResult CreatePartial()
{
ViewBag.AdvisorListItems = (from advisor in db.Advisors select advisor).AsEnumerable().Select(x => new ListItem(x.AdvisorName, x.AdvisorId));
return new Ext.Net.MVC.PartialViewResult { ViewName = "_CreateClient" };
}
PartialView:@model MvcApplication6.Models.Client
@(Html.X().Window()
.Width(370)
.Height(400)
.Title("Create Client")
.Items(
Html.X().FormPanel()
.Layout(LayoutType.Form)
.BodyPadding(10)
.Frame(true)
.Items(
Html.X().TextFieldFor(m => m.Name),
Html.X().DateFieldFor(m => m.IAASigned),
Html.X().TextFieldFor(m => m.ClientCategory),
Html.X().CheckboxFor(m => m.IsActive),
Html.X().TextFieldFor(m => m.State),
Html.X().ComboBoxFor(m => m.AdvisorId).Items(ViewBag.AdvisorListItems),
Html.X().Button().Text("Submit").DirectEvents(de => de.Click.Url = Url.Action("Create"))
)
)
)
Last edited by Daniil; Sep 12, 2013 at 6:02 AM.
Reason: [CLOSED]