This is a migrated thread and some comments may be shown as answers.

How to add a custom tooltip description

2 Answers 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 28 Jan 2016, 11:03 PM

How do you add a custom tooltip for specific columns in the grid?
For example, one my columns has the following grid schema setting:

item1Description: { editable: true, validation: { required: true }, defaultValue: '' }
 

When there is no value entered, the error message in the tooltip is "item1Description is required". How can I make it show a custom description like "Item 1 Description is required"?

2 Answers, 1 is accepted

Sort by
0
John
Top achievements
Rank 1
answered on 28 Jan 2016, 11:18 PM

I have seen this in the documentation. Is there somewhere in the documentation that states what all are the different options or settings we can override?

 

fields: {
    /* name of the field */ name: {
        type: "string", // the field is a string
        validation: { // validation rules
            required: true // the field is required
        },
        defaultValue: "<empty>" // default field value
    },
 
    /* name of the field */ price: {
        type: "number", // the field is a number
        validation: { // validation rules
            required: true, // the field is required
            min: 1 // the minimum value is 1
        },
        defaultValue: 99.99 // default field value
    },
 
    /* name of the field */ id: {
        editable: false, // this field is not editable
        nullable: true // a default value will not be assigned
    }
}

0
Boyan Dimitrov
Telerik team
answered on 01 Feb 2016, 01:19 PM

Hello John,

 

Please refer to the Grid / Custom validator editing demo that shows how to define custom validation rules and error message, which will be shown if the validation fails. 

 

Regards,
Boyan Dimitrov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
John
Top achievements
Rank 1
Boyan Dimitrov
Telerik team
Share this question
or