Hi!
I have been scouring through the forums and documentation but the way a grid gets tooltip is very confusing to me. we need to have a separate tooltip control and traverse the grid and apply tooltip in it.
Is there a way such as:
01.
columns: [ {
02.
field: "ParkingCardId",
03.
title: "Card Id",
04.
template: '<
a
href
=
"@Url.Action("
NewRequest", "Parking")?cardId=#=ParkingCardId#&
cardTypeString
=
View
">#=ParkingCardId#</
a
>'
05.
}, {
06.
field: "DateRequested",
07.
title: "Requested",
08.
template: '#= kendo.toString(kendo.parseDate(DateRequested), "dd-MMM-yy")#'
09.
}, {
10.
field: "Name",
11.
title: "Full Name"
12.
}, {
13.
field: "AirportPassNumber",
14.
title: "Pass No."
15.
}, {
16.
field: "DrivingLicenseNumber",
17.
title: "D.L No"
18.
}, {
19.
field: "VehicleNumber",
20.
title: "Car No."
21.
}, {
22.
field: "Status",
23.
title: "Status"
24.
tooltip: "<
Name
of a property on the model>"
25.
}, {
26.
field: "PassExpiryDate",
27.
title: "Expiry Date",
28.
template: '# if (PassExpiryDate !== null) {# #=kendo.toString(kendo.parseDate(PassExpiryDate), "dd-MMM-yy")# #} else { # <
span
></
span
> # } #'
29.
}, {
30.
field: "StatusId",
31.
title: "Action",
32.
template:
33.
"#if (IsExpired && StatusId === 5) {# <
a
href
=
'@Url.Action("NewRequest", "Parking")?cardId=#=ParkingCardId#&cardTypeString=Renew Card'
>Renew</
a
> #} else {# #}#" +
34.
"#if ((IsExpired && StatusId === 5) && StatusId === 0) {# | #} else {# #}# " +
35.
"#if (StatusId === 0) {# <
button
type
=
'button'
class
=
'k-button k-danger'
onclick
=
'openCancelDialog(#=ParkingCardId#)'
>Cancel</
button
> #} else {# #}#"
36.
},{
37.
field: "Invoice",
38.
title: "Invoice",
39.
template: '#if (Status == "Print & Pay") {# <
a
onclick
=
PrepareInvoice
("#=ParkingCardId#")>Print</
a
> #} else {# #}#'
40.
}
41.
]
Check line # 24.