Get Subgrid data using javascript
Forgetting subgrid values from your entity, you can use the following javascript
function RetrieveSubgridRecord() {
if (document.getElementById("Competitors")) { //Competitors is logical name of my grid
var grid = document.getElementById("Competitors").control;
for (var rowNo = 0; rowNo <= grid.GetRecordsFromInnerGrid().length; rowNo++)
for (var cellNo = 0; cellNo <= grid.GetRecordsFromInnerGrid()[rowNo][1].length; cellNo++)
alert(grid.GetRecordsFromInnerGrid()[rowNo][3].cells[cellNo].outerText);
}
}
This is the way to getting subgrid values from local entity. From getting subgrid data from database you need to download FetchXML from your advance find...
I will upload that soon
Hope this helps you
This is the way to getting subgrid values from local entity. From getting subgrid data from database you need to download FetchXML from your advance find...
I will upload that soon
Hope this helps you
No comments:
Post a Comment