I was able to make the dropdownlist work in a plain asp.net mvc project. But when I attached the same code in Sharepoint Provider-Hosted Add-in, it only displays as a blank text box. Do I need to add anything? I attached the plain asp.net mvc project and screenshots.
Thanks!

When one file is dragged and dropped onto the control the Upload endpoint is called twice.
My control is declared as follows:
@(Html.Kendo().FileManager().Name("documentExplorer")
.DataSource(ds =>
{
ds.Read(operation => operation
.Type(HttpVerbs.Post)
.Action("Read", "DocumentExplorer", new { groupId = ViewBag.GroupId }));
ds.Destroy(operation => operation
.Type(HttpVerbs.Post)
.Action("Delete", "DocumentExplorer", new { groupId = ViewBag.GroupId }));
ds.Create(operation => operation
.Type(HttpVerbs.Post)
.Action("Create", "DocumentExplorer", new { groupId = ViewBag.GroupId }));
ds.Update(operation => operation
.Type(HttpVerbs.Post)
.Action("Update", "DocumentExplorer", new { groupId = ViewBag.GroupId }));
})
.InitialView("grid")
.UploadUrl("Upload", "DocumentExplorer", new { groupId = ViewBag.GroupId })
.Draggable(true)
.Toolbar(tb => tb.Items(items =>
{
items.Add().Type("button").Text("").Command("NavigateToRoot").HtmlAttributes(new { title = "Go to Root" }).Icon("home");
}))
.Events(e => {
e.Open("downloadFile");
e.Execute("onExecute");
e.Navigate("onNavigate");
e.DataBinding("onDataBinding");
e.DataBound("onDataBound");
e.Drop("onDrop");
})
)
I'm using the events mostly for troubleshooting this issue, so they just output the received event/data. That being said, the onDrop is not being called. Any help with figuring out why this happens will be greatly appreciated.
Thanks,
-Carlos

can someone help please
my platform is asp.net mvc 5 using razor pages in vs 2019 using telerik latest controls.
in my patient page I have a kendo listivew inside of a kendo TileLayout.
datasource is a list of patient name populating the listivew
listView generate the listing of items just fine.
however, when I select on the listivew i can not get the current selected item number,
which will generate an action
no index number, no way to find where to get the selected item.
What Am I Doing Wrong.
// index.cshtml
@model ap_GetMembershipListAllRow
<script type="text/x-kendo-template" id="template">
<div class="patient-view k-widget">
<div class="patientidtemp">#:Patient_ID#</div>
<div class="fullnametemp">#:LastName#, #:FirstName# #:MiddleName#</h1>
<div class="bdatetemp">Date Begin: #:kendo.toString(BeginDate,"MMM/dd/yyyy")#</div>
</div>
</script>
<script type="text/x-kendo-template" id="template2">
<div class="patient-view k-widget">
<div class="patientidtemp1">#:Patient_ID#</div>
<div class="fullnametemp1">#:LastName#, #:FirstName# #:MiddleName#</h1>
<div class="bdatetemp1">Date Begin: #:kendo.toString(BeginDate,"MMM/dd/yyyy")#</div>
</div>
</script>
<script type="text/x-kendo-template" id="patient-list">
@(Html.Kendo().ListView<ListViewModel>()
.Name("PatientListView")
.TagName("div")
.ClientTemplateId("template")
.ClientAltTemplateId("template2")
.DataSource(dSource => dSource
.Ajax()
.Read(read => read.Action("PatientList_Read", "PatientPortal").Type(HttpVerbs.Get))
.PageSize(11)
.Model(model => model.Id("Patient_ID"))
)
.Pageable()
.Selectable(selectable => selectable.Mode(ListViewSelectionMode.Single))
.Events(events => events.Change("onChange"))
.ToClientTemplate()
)
</script>
//patientportal.js
// nothing works
function onChange(e) {
var ds = $("#PatientListView").data("kendoListView");
var index = ds.select().index(),
dataItem = ds.dataSource.view()[index];
var item = dataItem;
var listViewx = $("#PatientListView").data("kendoListView");
selectItem = listViewx.dataSource.index();
listView.select(listView.content.children().first());
var dataSource = listViewx.dataSource.view();
if (listViewx) {
$.each(dataSource, function (index, item) {
if (item.Code === code) {
listViewx.select(item);
selectedCoverageCode = item;
}
});
}
var index = this.select().index();
dataItem = this.dataSource.view()[index];
}
// controller.cs
public JsonResult PatientList_Read([DataSourceRequest] DataSourceRequest request)
{
var result = patientService.GetMembersListItem(); //default list
if (ViewData["PatientID"] != null && ViewData["MultiNames"] as string == "Individual")
{
string first = ViewData["FirstName"] as string;
string last = ViewData["LastName"] as string;
result = patientService.GetPatientSearchNames(last,first );
}
return new JsonResult(result.ToDataSourceResult(request));
}
// patientPortalService.cs
public List<ListViewModel> GetMembersListItem()
{
string connectionString = _configuration.GetConnectionString("ManagerToolsDBContextConnection");
ap_GetMembershipListAll listAll = new ap_GetMembershipListAll(connectionString);
listAll.Clinic_id = Convert.ToInt32(_session.GetString("ClinicNumber"));
Collection<ap_GetMembershipListAllRow> row = listAll.Execute();
return GetPatientListViewMapping(row);
}
public List<ListViewModel> GetPatientListViewMapping(Collection<ap_GetMembershipListAllNameRow> ap_Get)
{
List<ListViewModel> lv = new List<ListViewModel>();
foreach (ap_GetMembershipListAllNameRow item in ap_Get)
{
ListViewModel nlv = new ListViewModel();
nlv.FirstName = item.FirstName.ToString();
nlv.MiddleName = item.MiddleName.ToString();
nlv.LastName = item.LastName.ToString();
nlv.Patient_ID = (long)item.Patient_id;
nlv.BeginDate = (DateTime)item.MembershipStartDate;
lv.Add(nlv);
}
return lv;
}
//ListViewModel.cs
public class ListViewModel
{
public long Patient_ID { get; set; }
public string Greeting { get; set; }
public string FirstName { get; set; }
[DefaultValue(true)]
public string MiddleName { get; set; }
public string LastName { get; set; }
[DisplayFormat(DataFormatString = "{0:dd-MMM-yyyy}")]
public DateTime BeginDate { get; set; }
}

Hi guys! I really need your help!
It is necessary to make a dynamic grid with the ability to edit cells. The grid layout appears. Column names are visible. Data is not loaded into the grid. There is an error in the browser console:"Uncaught SyntaxError: unexpected token: numeric literal" kendo.all.js:63353:40. I can’t cope with this error ...
View:
@model System.Data.DataTable@{ var id = Model.Columns[0].ColumnName; var templateName = "String";}@(Html.Kendo().Grid<dynamic>() .Name("Grid") .Columns(columns => { foreach (System.Data.DataColumn column in Model.Columns) { switch (column.DataType.ToString()) { case "System.Int16": case "System.Int32": case "System.Int64": templateName = "Integer"; break; case "System.Decimal": case "System.Double": case "System.Float": templateName = "Number"; break; case "System.String": templateName = "NotEditable"; break; } if (column.ColumnName == id) { templateName = "NotEditable"; } columns.Bound(column.ColumnName).Title(column.Caption).EditorTemplateName(templateName).EditorViewData(new { name = id }); } }) .ToolBar(toolbar => {toolbar.Save(); }) .Editable(ed=>ed.Mode(GridEditMode.InCell)) .Scrollable() .DataSource(dataSource => dataSource.Ajax() .Batch(true) .Model(model => { model.Id(id); foreach (System.Data.DataColumn column in Model.Columns) { var field = model.Field(column.ColumnName, column.DataType); if (column.ColumnName == id || column.ColumnName == "BusName") { field.Editable(false); } } }) .Read("Read", "Project") .Update("Update", "Project") ) )Controller:
public ActionResult Index() { DataTable proj = new DataTable("table"); proj.Columns.Add()...; proj.Rows.Add() return View(proj); }In debug mode, the Read method does not enter ...
kendo ver. 2018.1.221.545
Please tell me what to do. 2 days I can not solve this problem

Hi Team,
I am using the Kendo Grid ASP.NET MVC. Please find the column code below. I want to do few things.
1) Edit button is position in the last column for each row having its own. Once the Edit button is being clicked, I want Edit button to be replaced with "Update and Cancel" button.
2) After clicking the edit button, the First column of the whatever row's" Edit" button being clicked will be able to editable by the user. User can type what they wanted to.
3) Once the user clicks on the "Update" button, the first column should be updated (what a user has changed) and become noneditable, and Edit button will replace the "Update and Cancel" button. If user clicks the Cancel button, then the first column would not be updated and Edit button will replace the "Update and Cancel" button.
4) Grid rows (all data) should remain same as they were before. Refresh function would wipe out the previous data which I do not want it to happen. I want to update a specific row's first column when a user clicks the Edit button of that row. After editing and clicking the update button, the rest of the rows must remain same as they were before.
columns.Bound(p => p.ClickStatus)
.Title("Action")
.ClientTemplate("<button type='k-button' class='btn btn-link' id='editComment'>Edit</button>")
.Groupable(true)
.Width(120)
.Locked(false)
.HtmlAttributes(new { style = "text-align: center;" });
Please guys let me know if you know ways to do it. I have been researching this but not able to succeed. Please get back to me as quickly as possible since I am working on the project.
Best,
Mayur Maisuria

I am using Telerik MVC. Is there a way to have my own look when using grouping in a dropdownlist.
I would like to have different look in the grouping dropdownlist to sowh the group value on the right for each row in the selectbox.
Is it a way to do it?
the attached file Current.png is what I have now. the HopeToHave.png is what I was asked to do.
It seems I can not find any document on how to do it.
The code I have is
@(Html.Kendo().DropDownListFor(m => m.CompetencyName)
DataValueField("CompetencyName")
.DataTextField("CompetencyName")
.OptionLabel("Select...")
.DataSource(source => source
.Custom()
.Group(g => g.Add("CompetencyType", typeof(string)))
.Transport(transport => transport
.Read(read => read.Action("GetAllCompetencies", "Method", new { posTitle = ViewData["Title"] }).Type(HttpVerbs.Post))
)
)
)
Thanks.
Allen