Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 335
Márk Gergely Dolinka Avatar asked Jan 19 '13 20:01

Márk Gergely Dolinka


1 Answers

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"))
)
like image 117
Márk Gergely Dolinka Avatar answered Oct 01 '22 17:10

Márk Gergely Dolinka