or
<div id="movies"> @(Html.Telerik().Grid(Model) .Name("Grid") .Columns(columns => { columns.Bound(model => model.Title).Width(500); columns.Bound(model => model.Price).Width(200); }) .HtmlAttributes(new { style = "height: 380px;" }) .Scrollable() .Groupable() .Sortable() .Scrollable () )</div><style scoped> #movies { width: 692px; height: 413px; margin: 30px auto; padding: 51px 4px 0 4px; } </style>
ViewBag.NoSource = new SelectList(db.Sources, "NoSource", "CodeSource");@(Html.Kendo().DropDownList() .Name("NoRisque") // Name of the widget should be the same as the name of the property .DataValueField("Value") // The value of the dropdown is taken from the EmployeeID property .DataTextField("Text") // The text of the items is taken from the EmployeeName property .BindTo((SelectList)ViewBag.NoSource) // A list of all employees which is populated in the controller )


Html.Kendo().Window() .Name("time-hierarchy-edit-window") .Title("Add or Edit Leafs") .LoadContentFrom("/Hierarchies/EditTimeHierarchyNodes?hierarchyID=" + Request.QueryString["hierarchyID"]) .Draggable() .Width(500) .Render(); And I have the action method in controller:public ActionResult EditTimeHierarchyNodes(Guid hierarchyID) { EditTimeHierarchyNodesViewModel model = new EditTimeHierarchyNodesViewModel() { Hierarchy = m_timeHierarchyRepository.GetTimeHierarchy(hierarchyID), LeafNodeGroups = m_timeNodeRepository.GetLeafNodeGroups(hierarchyID), }; return View(); }However, when the ajax request came back, it gave me 500 error "This request has been blocked because sensitive information could be disclosed to third party web sites when this is used in a GET request. To allow GET requests, set JsonRequestBehavior to AllowGet." The issue is that the View() does not have any overload that allows me to specify the AllowGet option. Can any one shine some light on this? Thanks.
@(Html.Kendo().Grid<AccountManagement.Business.ViewModels.Areas.DM.RehireDocumentSettingViewModel>() .Name("DocumentSettings") .Columns(columns => { columns.Bound(ds => ds.FormID); columns.Bound(ds => ds.DocumentDateTypeName); columns.Bound(ds => ds.RemoveIfOlderThanDays); } ) .Navigatable() .Sortable() .Scrollable() .DataSource(dataSource => dataSource .Ajax() .Batch(true) .ServerOperation(false) .Events(events => events.Error("error_handler")) .Model(model => model.Id(ds => ds.FormID)) .Create("RehireDocumentSetting_Editing_Create", "RehireSetup") .Read("RehireDocumentSetting_Editing_Read", "RehireSetup") .Update("RehireDocumentSetting_Editing_Update", "RehireSetup") .Destroy("RehireDocumentSetting_Editing_Destroy", "RehireSetup") ) )@(Html.Kendo().Grid<AccountManagement.Business.ViewModels.Areas.DM.RehireDocumentSettingViewModel>() .Name("DocumentSettings") .Columns(columns => { columns.Bound(ds => ds.FormID); columns.Bound(ds => ds.DocumentDateTypeName); columns.Bound(ds => ds.RemoveIfOlderThanDays); } ) .Navigatable() .Sortable() .Scrollable() .Editable() .DataSource(dataSource => dataSource .Ajax() .Batch(true) .ServerOperation(false) .Events(events => events.Error("error_handler")) .Model(model => model.Id(ds => ds.FormID)) .Create("RehireDocumentSetting_Editing_Create", "RehireSetup") .Read("RehireDocumentSetting_Editing_Read", "RehireSetup") .Update("RehireDocumentSetting_Editing_Update", "RehireSetup") .Destroy("RehireDocumentSetting_Editing_Destroy", "RehireSetup") ) )