Click here to Skip to main content
15,888,315 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
Update Specific kendo grid cell value on databound event. 

items[i].set("strBillAmount", x) produces "NaN" in grid cell


What I have tried:

var GridDataBound = $('#gridId').data('kendoGrid');
var count = GridDataBound.dataSource.total();


function OnDatabound(e) {

var items = this.dataSource.data();
for (i = 0; i < count; i++) {

var number = parseInt(GridDataBound.dataSource.data()[i].strBillAmount);
var Symbol = { style: "currency", currency: "INR" };
var x = number.toLocaleString("hi-IN", Symbol);
alert(x)
this['strBillAmount'] = x;
//items[i].set("strBillAmount", x);

}
}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900