Dear Team,
I am using XML source and have framed the following XML:
[Entities]
[Entity EntityID=”100″]
[Name]xyz[/Name]
[/Entity]
[Entity EntityID=”200″]
[Name]abc[/Name]
[/Entity]
[/Entities]
The entity records are being displayed in the grid. Since each Entity is one “row” of data, in the cellrenderer I want to access the “row” i.e. Entity attribute “EntityID” value. How to I access the row’s attribute value? Can anyone help me on this?
my code:
var cellsrenderer = function (row, column, value) {
var entityId = $(“#jqxgrid”).jqxGrid(‘getrowdata’, row).EntityID;
return ‘‘ + value + ‘‘;
}
The above code is saying entityId value as “undefined”. How to get the value of the attribute EntityID?
Please help!
Sunil