Márk Gergely Dolinka Márk Gergely Dolinka - 2 months ago 12
C# Question

Changing the Kendo UI upload widget's text

I would like to change the default text of

Select
to something more appropriate for the context. I'm using the Kendo Fluent API built on the
HtmlHelper
class and I didn't find a way to change the text neither in the basic functions nor in the localization.

My code is pretty simple and looks like this:

@(Html.Kendo().Upload()
.Name("FilesToUpload")
)


There is a suggestion in this thread about a jQuery function to change the text, which works perfectly if I use the javascript API of the Upload widget but doesn't work when I create the widget via
Html.Kendo().Upload
.

And even better with the javascript API there is a:

localization: {
select: 'any text'
}


Settings you can use, but this doesn't help me either.

If anyone has faced this problem before and tackled it I would really appreciate his help.

Answer

I have just received an answer on the kendo forums in this thread. And the solution is pretty easy, but the feature was just a little hidden in the fluent interface:

@(Html.Kendo().Upload()
      .Name("FilesToUpload")
      .Messages( m => m.Select("Select unit bulk upload file"))
)