So may be it has no idea of the container?
Can you pass to your support team for a quick answer?
@(Html.Kendo().Grid<PGE.MCRM.RDC.Web.ViewModel.TCA.CustomNotionalValueVM>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.TRADE_KEY).Title("Trade Key").Width(80);
columns.Bound(p => p.SYS_NAME).Title("PG&E System").Width(120);
columns.Command(command => command.Destroy()).Width(110);
})
.ToolBar(toolbar =>
{
toolbar.Create();
toolbar.Save();
})
.Editable(editable => editable.Mode(GridEditMode.InCell))
.Sortable()
.Scrollable()
.Filterable()
.Events(e => e.Edit("gridEdit"))
.DataSource(dataSource => dataSource
.Ajax()
.Batch(true)
.ServerOperation(false)
.Events(events => events.Error("error_handler"))
.Model(model => {
model.Id(p => p.TRADE_KEY);
model.Field(p => p.TRADE_KEY).Editable(false); }
)
.Create(update => update.Action("SaveNotionalValues", "TCA"))
.Read(read => read.Action("GetNotionalValues", "TCA", new { sysID = "17", userID = "", tradeKey = "" }))
.Update(update => update.Action("SaveNotionalValues", "TCA"))
.Destroy(update => update.Action("DestroyNotionalValues", "TCA"))
)
//edit event and I check it is calling this function when I click on the new created row second column
function gridEdit() {
//handle the grid edit event to get the dropdownlist show up
$('<input id="SYS_NAMEID" name="SYS_NAMEID" required />').appendTo(container).kendoDropDownList({
autoBind: false,
dataSource: pgeSystemsDataSource,
dataTextField: "SYS_NAME",
dataValueField: "SYS_NAME",
});
$('<span class="k-invalid-msg" data-for="SYS_NAME"></span>').appendTo(container);
}
[Display(Name = "Address")]
[DataType(DataType.Text)]
[StringLength(200)]
[Required]
public string Address { get; set; }
[Display(Name = "State")]
[DataType(DataType.Text)]
[StringLength(100)]
public string State { get; set; }
[Display(Name = "Postal Code / Zip")]
[DataType(DataType.Text)]
[StringLength(10)]
public string ZipPostalCode { get; set; }
return Json(new [] { product }.ToDataSourceResult(request, ModelState));
return Json(ModelState.ToDataSourceResult());
return Json(ModelState.ToDataSourceResult());
@(Html.Kendo().Menu().Name("menu").Items(menuItemFactory => { menuItemFactory.Add().Text("Menu Item"); }))
Results in this exception:[ArgumentNullException: Value cannot be null. Parameter name: item] System.Web.Routing.RouteCollection.SetItem(Int32 index, RouteBase item) +2340263 System.Collections.ObjectModel.Collection`1.set_Item(Int32 index, T value) +116 Kendo.Mvc.UI.NavigatableExtensions.IsCurrent(INavigatable navigatable, ViewContext viewContext, IUrlGenerator urlGenerator) +69 Kendo.Mvc.UI.Menu.HighlightSelectedItem(MenuItem item) +86 Kendo.Mvc.Extensions.EnumerableExtensions.Each(IEnumerable`1 instance, Action`1 action) +194 Kendo.Mvc.UI.Menu.WriteHtml(HtmlTextWriter writer) +202 Kendo.Mvc.UI.WidgetBase.ToHtmlString() +115 Kendo.Mvc.UI.Fluent.WidgetBuilderBase`2.ToHtmlString() +62 System.Web.HttpUtility.HtmlEncode(Object value) +38 System.Web.WebPages.WebPageBase.Write(Object value) +68 ASP._Page_Views_PlayerGroup_ScreenLayout_cshtml.Execute() in c:\Development\Development\c#\Clients\DAT Media\CMS\CMS.Website\Views\PlayerGroup\ScreenLayout.cshtml:15 System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +197
@(Html.Kendo().TabStrip()
.Name("tabStrip")
.Items(tabStrip =>
{
tabStrip.Add().Text("First").Content("First tab strip content");
tabStrip.Add().Text("Second").Content("Second tab strip content");
}
)
)
[ArgumentNullException: Value cannot be null. Parameter name: item] System.Web.Routing.RouteCollection.SetItem(Int32 index, RouteBase item) +2340263 System.Collections.ObjectModel.Collection`1.set_Item(Int32 index, T value) +116 Kendo.Mvc.UI.NavigatableExtensions.IsCurrent(INavigatable navigatable, ViewContext viewContext, IUrlGenerator urlGenerator) +69 Kendo.Mvc.UI.TabStrip.HighlightSelectedItem(TabStripItem item) +80 Kendo.Mvc.Extensions.EnumerableExtensions.Each(IEnumerable`1 instance, Action`1 action) +194 Kendo.Mvc.UI.TabStrip.WriteHtml(HtmlTextWriter writer) +294 Kendo.Mvc.UI.WidgetBase.ToHtmlString() +115 Kendo.Mvc.UI.Fluent.WidgetBuilderBase`2.ToHtmlString() +62 System.Web.HttpUtility.HtmlEncode(Object value) +38 System.Web.WebPages.WebPageBase.Write(Object value) +68 ASP._Page_Views_PlayerGroup_ScreenLayout_cshtml.Execute() in c:\Development\Development\c#\Clients\DAT Media\CMS\CMS.Website\Views\PlayerGroup\ScreenLayout.cshtml:15