3 Answers, 1 is accepted
0
Accepted
Hello Navin,
To achieve this you could use row template, as in this online example. You can add some JavaScript code inside the template to check your condition, as shown in the Kendo UI template demo. For example this will set a red color to the "The Stars of Star Wars" movie row in the rowTemplate demo:
Iliana Nikolova
the Telerik team
To achieve this you could use row template, as in this online example. You can add some JavaScript code inside the template to check your condition, as shown in the Kendo UI template demo. For example this will set a red color to the "The Stars of Star Wars" movie row in the rowTemplate demo:
<
script
id
=
"rowTemplate"
type
=
"text/x-kendo-tmpl"
>
# if (AverageRating == "2.9") { #
<
tr
style
=
"color:red;"
>
# } else { #
<
tr
>
# } #
<
td
>
<
img
src
=
"${ BoxArt.SmallUrl }"
alt
=
"${ Name }"
/>
</
td
>
<
td
>
${ Name }
</
td
>
<
td
>
${ AverageRating }
</
td
>
</
tr
>
</
script
>
I hope this helps.
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Navin
Top achievements
Rank 1
answered on 28 Aug 2012, 08:30 AM
Thankz Nikolova...
0