Hi Team,
I am trying to create simple upload section using code shared further down, but it gives me below error saying validation is not defined error.
'Kendo.Mvc.UI.Fluent.UploadBuilder' does not contain a definition for 'Validation' and no extension method 'Validation' accepting a first argument of type 'Kendo.Mvc.UI.Fluent.UploadBuilder' could be found (are you missing a using directive or an assembly reference?)
I tried putting below in view but not fixed, not sure where this method comes from. Do i need to upgrade dll version as of now i am using 2014.3.1119.
@using Kendo.Mvc.Extensions;
Please suggest what i am missing. thanks.
@(Html.Kendo().Upload()
.Name("documentUploader")
.Messages(m => m.Select("Browse").UploadSelectedFiles("Upload"))
.Events(events =>
events.Success("uploadSuccess")
.Complete("uploadComplete")
.Error("onError")
.Upload("uploadClick")
)
.Multiple(false)
.Async(a => a
.Save("UploadDocument", "Document")
.AutoUpload(false)
.SaveField("uploadedDocuments")
)
.Validation(validation => validation.AllowedExtensions(new string[] { ".zip", ".rar" }).MaxFileSize(3145728)))