Hi sorry for duplicating my post, but I can't post a reply on my first previous post.
below are the details. Thanks.
I updated my Kendo from 1.416 to 2.716 (yes, I skipped the updates for a long time.).
So, I have this 100% working Kendo Upload(w/ v 1.416), after updating to v.2.716 the files are being duplicated after selecting items.
Codes are basic Kendo Upload async inside a tabstrip for aspnet mvc(razor).
Please let me know if there are issues with Upload inside Tabstrip because my other Upload are working fine outside the Tabstrip.
Please refer on the sample code below.
Edit.cshtml
Item2Controller.cs
IndexItem2.cshtml
I tried to duplicate the scenario on this example, but i failed.
Please see the filed attached on this for reference.
below are the details. Thanks.
I updated my Kendo from 1.416 to 2.716 (yes, I skipped the updates for a long time.).
So, I have this 100% working Kendo Upload(w/ v 1.416), after updating to v.2.716 the files are being duplicated after selecting items.
Codes are basic Kendo Upload async inside a tabstrip for aspnet mvc(razor).
Please let me know if there are issues with Upload inside Tabstrip because my other Upload are working fine outside the Tabstrip.
Please refer on the sample code below.
Edit.cshtml
01.@model MyModelMain02.@if (Model.Id != 0)03. {04. @(Html.Kendo().TabStrip()05. .Name("MyItems")06. .Items(items =>07. {08. items.Add().Text("Item1")09. .Selected(true)10. .Content(@<div>@Html.Action("Index", "Item1Controller", new { ItemId = Model.Id })</div>);11. items.Add().Text("Item2")12. .Selected(false)13. .Content(@<div>@Html.Action("IndexItem2", "Item2Controller", new { ItemId = Model.Id })</div>);14. }))15. }Item2Controller.cs
01.public class Item2Controller : BaseManagementWithModelController<MainModel,long,MyModelMain,MyModelMain>02.{03. 04. /*constructor here*/05. 06. public ActionResult IndexItem2(long Id)07. {08. var entity = new ItemModel();09. ItemViewModel model = new ItemViewModel();10. entity = service.Get(Id);11. 12. model = mode.MapFrom(entity);13. 14. return View("IndexItem2",model);15. 16. }17.}IndexItem2.cshtml
01.@model List<ItemViewModel>02. 03.@(Html.Kendo().Upload()04..Name("Item2Upload")05. 06..Async(x => x.AutoUpload(false)07. .Save("UploadImage", "Item2Controller", new RouteValueDictionary08. {09. {Constants.ItemId, TempData[Constants.ItemId]}10. 11. })) 12..Events(x => x13. .Select("uploadItem2Image_onSelect") 14. .Complete("uploadItem2Image_onSuccess")15.)16..Multiple(true))17. 18.@if(Model != null && Model.Count() > 0)19.{20. foreach(var itemImages in Model.OrderyBy(x => x.Id))21. {22. <img src ='@images.ImagePath' />23. }24.}I tried to duplicate the scenario on this example, but i failed.
Please see the filed attached on this for reference.