top of page

CRM 2015 Online Update 1 – {Javascript Code Example #3} – Sub-grid controls new events a

With Update 1 for CRM 2015 Online more events and objects are available, before this update, only the refresh was available. 

Now it is possible to interact with grid-controls to get the number of total records, getting the object grid so can be worked as an object, it is possible as well to get all rows or even selected rows from the grid only.

I would say that mostly i would use the grid object on the purpose of getting either all rows or selected rows, however it is possible to extend to more functionalities.

As an example i leave below few lines of code to access the grid from javascript:

Iterating trough the grid as an array:

var allGridRowData = []; 

var rows = Xrm.Page.getControl("Contacts").getGrid().getRows();

 rows.forEach(function (row, i) { 



0 views0 comments

Recent Posts

See All


bottom of page