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.
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"))
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With