This question is locked. New answers and comments are not allowed.
Hai Team,
I am using Ajax binding in telerik grid mvc3.how to change the Background color of a cell in jquery.
columns.Bound(x => x.CSOverall)
.ClientTemplate(string.Format(@"<#= BindDataForCS(CSOverall,this) #>"))
.Title("CS")
.Width(0);
Jquery Fuction for ClientTeplate:
var BindDataForCS = function (CSOverall, e) {
If(CSOverall>=80)
{
//Cell backgroundcollor red.
}
else If(CSOverall>=60)
{
//Cell backgroundcollor Green
}
var div = '';
div = "<div >" + CSOverall + "</div>";
return div
}
I try to set Div background color..but it is not set to overall cell..It set to Partially inside the cell...
I am using Ajax binding in telerik grid mvc3.how to change the Background color of a cell in jquery.
columns.Bound(x => x.CSOverall)
.ClientTemplate(string.Format(@"<#= BindDataForCS(CSOverall,this) #>"))
.Title("CS")
.Width(0);
Jquery Fuction for ClientTeplate:
var BindDataForCS = function (CSOverall, e) {
If(CSOverall>=80)
{
//Cell backgroundcollor red.
}
else If(CSOverall>=60)
{
//Cell backgroundcollor Green
}
var div = '';
div = "<div >" + CSOverall + "</div>";
return div
}
I try to set Div background color..but it is not set to overall cell..It set to Partially inside the cell...