Kendo Grid Editing custom validation error tip resolution _javascript tips

Source: Internet
Author: User

The Kendo UI is a powerful framework for fast HTML5 UI development. Based on the latest HTML5, CSS3, and JavaScript standards.

The Kendo UI contains everything you need to develop modern JavaScript development, including powerful data sources, generic drag-and-drop (Drag-and-drop) features, templates, and UI controls.

Today began to use the project kendo control skills to make a record, there are individual mistakes I hope you will not hesitate to point out, thank you.

The first is the Grid control edit is, validation error pop-up prompts unexpectedly is Chinese plus field name, the following figure. Crazy!! Can you give me a hand with such a low-level hint?

Such a hint, find Niang solve it!! Search results so unsatisfactory, kendo aspects of things are very few, only to rummage out to find Google.

The original solution is very simple, there are two:

1. Add Required:{message to Validation: "Test"}, as follows:

Deptcode: {
type: "string", Nullable:true, Validation: {
required:true,
required: {message: Test}
}
  },

2, in the interface to add a style, as follows: (this method is not tested.) )

#grid. k-tooltip-validation {
margin-top:0!important;
Display:block;
position:static;
padding:0;
}
#grid. k-callout {
Display:none
}

The above is a small set to introduce the kendo Grid editing custom validation error tips to solve the problem, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.