Declined
Last Updated: 23 Jan 2020 12:44 by ADMIN
Imported User
Created on: 29 May 2012 19:00
Category: Kendo UI for jQuery
Type: Feature Request
1
Optionallty use the title as the fieldname during validation
Instead of pulling the validation message from the Title attribute, use the title in the formatted message. For people who are trying to write localized messages, this could be very beneficial since they can just replace the title with the correct field name and change the message in the options.errors just once for the localized error message.

   _extractMessage: function (input, ruleKey) {
        var that = this,
                customMessage = that.options.messages[ruleKey],
                fieldName = input.attr(NAME);

        customMessage = $.isFunction(customMessage) ? customMessage(input) : customMessage;

        return kendo.format(input.attr(kendo.attr(ruleKey + "-msg")) || input.attr("validationMessage") ||  customMessage || "", input.attr("title") || fieldName, input.attr(ruleKey));
    },
1 comment
ADMIN
Dimo
Posted on: 23 Jan 2020 12:44

Hi all,

This request has not gathered much demand, so I will close it. On a side note, we would wish to avoid the mentioned breaking change.

Regards,
Dimo
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.