I have kendo editor inside of modal in a tabstrip window.
My Kendo editor is defined as below -
@(Html.Kendo().Editor()
.Name("instEditor")
.Tag("div")
.Encode(false)
.Tools(tools => tools
.Clear()
.Bold()
.Italic()
.Underline()
.Strikethrough()
.JustifyCenter().JustifyFull().JustifyLeft().JustifyRight()
.CreateLink().Unlink().TableEditing().FontColor().BackColor())
.Value(Model.IContent)
)
I am getting the text in Kendo editor form database.
Whenever I run the application and Kendo editor renders, editor is loaded properly. When I click inside the editor, the toolbar pops up as expected.
But as soon as I select a text in the editor or basically whenever I mousedown in the editor second time after initially entering into the editor, the toolbar disappears. And it does not appear back until I click outside of the editor and then click back inside the editor.
How can I solve this issue?
Thanks!
Hi,
Our development team updated the Telerik Kendo MVC components to 2017 R2 Version. After this update the all MultiSelect always shown the loading icon.
How can I hide this gif icon from all MultiSelect?

I am trying to create a page with grid format and I used kendo controller also installed kendo in my system but its showing me this error. I have used code first entity framework for the code.
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult companys_Create([DataSourceRequest]DataSourceRequest request, company company)
{
if (ModelState.IsValid)
{
var entity = new company
{
companyname = company.companyname
};
db.companys.Add(entity);
db.SaveChanges();
company.companyid = entity.companyid;
}
return Json(new[] { company }.ToDataSourceResult(request, ModelState));
}
I am getting error at httpverbs. Can anyone give a solution.
Assume I have created Testcontroller and added a Testcombobox control in views(Eg. TestView.cshtml). I implements the function and return data is working fine. Now I added existing Testcombobox control in different Controller (eg. Test1View1.cshtml and Test1Controller) is not loading data and it getting error like uncaught TypeError: Cannot read property 'slice' of undefined.
Eg ComboControl.
@(Html.Kendo().ComboBoxFor(m => m)
.Name("cbtest")
.Placeholder("--Select--")
.DataSource(source => source
.Custom()
.ServerFiltering(false).Transport(transport => transport
.Read(read =>
{
read.Action("TestAction", "Test");
}))
.Schema(schema => schema.Data("Data")
.Total("Total")
.Errors("errors")))
.MinLength(3)
.AutoBind(true)
.Filter(FilterType.Contains)
.DataValueField("sTestEntCode")
.DataTextField("sTestText")
Is there anything missing code or reference?
Note: Using Area Controller and the same control added another area controller.
Hi All,
In my date picker date coming as invalid. i mean moth coming as 48. why? Please see attached screen shot


Is there a way to change the title of the "Export to Pdf" button for localization purpose for example.
Hi,
We are looking to asynchronously upload a file and temporarily store it in the AppData folder. The widget works perfectly when uploading pdf files, but for some reason it triggers a full postback when we try to upload a jpg file.
For context, here are some code snippets from the view and controller:
View
@(Html.Kendo().Upload().Name("uploadDocuments")
.Async(a => a
.Save("Upload", "Home")
.AutoUpload(true)))
Controller
public ActionResult Upload(HttpPostedFileBase[] uploadDocuments)
{
foreach (var document in uploadDocuments)
{
var fileName = Path.GetFileName(document.FileName);
var uploadPath = Server.MapPath("~/App_Data");
var physicalPath = Path.Combine(uploadPath, fileName);
document.SaveAs(physicalPath);
}
// Return an empty string to signify success
return Content("");
}
We're using Kendo for ASP .NET MVC version 2017.2.621. Any help is greatly appreciated.
Thanks!

Hi,
I am working on Asp.Net MVC Grid (MVC 5 2017.1.223) Please see the below code details.
@(Html.Kendo().Grid<EditableTest>()
.Name("Grid")
.Columns(columns =>
{
columns.Bound(c => c.testID).Hidden();
columns.Bound(c => c.testDesc).Title("City Description");
columns.Bound(c => c.testCode).Title("Country");
columns.Command(command => { command.Edit(); command.Destroy(); }).Width(250);
})
.ToolBar(toolbar => { toolbar.Create(); })
.Editable(ed => ed.Mode(GridEditMode.PopUp))
.Sortable()
.Pageable(pageable => pageable
.Refresh(true)
.PageSizes(true)
.ButtonCount(5))
.Filterable()
.DataSource(dataSource => dataSource
.Custom()
.PageSize(20)
.Schema(schema => schema.Model(m => m.Id(p => p.testID)))
.Transport(transport =>
{
transport.Read(read => read.Url("http://localhost:60018/api/testapi").DataType("json"));
transport.Create(create => create.Url("http://localhost:60018/api/testapi").Type(HttpVerbs.Post).DataType("json"));
transport.Update(Update => Update.Url("http://localhost:60018/api/testapi").Type(HttpVerbs.Put).DataType("json"));
transport.Destroy(del => del.Url("http://localhost:60018/api/testapi").Type(HttpVerbs.Delete).DataType("json"));
})
)
)
This is custom Grid with web api. Read and create is work fine but update and destroy is not working. Is there any missing code. I understand for Put and Delete need to pass parameter thru web Api. I think I already added scheme for ID. Appreciate your help on this. :)
Regards
Suman G
Hi,
I've a kendo grid with a delete option for each row. Delete an item and it is removed from the list and the dete from the data context performs successfully. However when I delete another row, it tries to perform the delete of the first deleted row a 2nd time, cant find the entity and throws an error, so the 2nd item is not deleted.
Code as follows -
View
@(Html.Kendo().Grid<OriginGreen.Areas.Portal.Models.DisplayArticleViewModel>() .Name("Article") .Columns(columns => { columns.Bound(p => p.Id).Title("Id").Visible(false); columns.Bound(p => p.Title).Title("Title").Width(100); columns.Bound(p => p.AticleTypeDesc).Title("Article Type").Width(100); ; columns.Bound(p => p.AticleCodeType).Title("Article Type").Visible(false); columns.Bound(p => p.PublishedOn).Format("{0:dd/MM/yyyy HH:mm:ss}").Width(150).Title("Date Published").Width(100); columns.Command(command => command.Destroy()).Width(40); columns.Template(x => { }).ClientTemplate("<a class='k-button k-button-icontext k-grid-EditArticle' href='" + Url.Action("Edit", new { id = "#= Id #" }) + "'>Edit</a>").Width(30); }) .Events(e => e.DataBound("onRowBound") ) .Pageable() .Sortable() .Scrollable() .Filterable(ftb => ftb.Mode(GridFilterMode.Row)) .DataSource(dataSource => dataSource .Ajax() .ServerOperation(false) .PageSize(10) .Batch(true) .Model(model => { model.Id(p => p.Id); model.Field(p => p.Title); }) .Read(read => read.Action("DisplayArticlesRead", "Article").Type(HttpVerbs.Get)) .Destroy(destroy => destroy.Action("ArticleDestroy", "Article").Type(HttpVerbs.Post)) ) )
Server-side -
[AcceptVerbs(HttpVerbs.Post)] //public ActionResult ArticleDestroy([DataSourceRequest] DataSourceRequest request, [Bind(Prefix = "models")]IEnumerable<DisplayArticleViewModel> articles) public ActionResult ArticleDestroy([DataSourceRequest] DataSourceRequest request, [Bind(Prefix = "models")]IEnumerable<DisplayArticleViewModel> articles) { if (articles.Any()) { foreach (var article in articles) { // Delete Any Article Attachments first, so as not to leave orphaned records var articleAttachments = _articleRepository.GetArticleAttachments(article.Id); if (articleAttachments.Count > 0) { foreach (var articleAttachment in articleAttachments) { _articleRepository.DeleteAttachment(articleAttachment.AttachmentId); } } _articleRepository.DeleteArticle(article.Id); } } //return Json(articles.ToDataSourceResult(request, ModelState)); return Json(articles.ToDataSourceResult(request, ModelState)); }
I've read up on it and it seems I need to return a success indicator to the grid but I cant work out how to do this in an mvc setup.
Any help greatly appreciated.
Terry.
