Click here to Skip to main content
14,668,804 members
Rate this:
Please Sign up or sign in to vote.
See more:
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100