Quantcast
Channel: Dynamics 365 Customer Engagement
Viewing all articles
Browse latest Browse all 286

Get GridContext form the button on the Subgrid - SelectedControl

$
0
0
Hi Everyone,

Today I was working on adding a button on the some sub grid and on click I have to refresh that Grid after doing some business operation.  To refresh the grid, we have to get the Grid Context. This can be easily achieved by passing SelectedControl as a CRM Parameter.

function onSubgridButtonClick(selectedControl) {
    if (selectedControl.name == "ABC") {
        // Your logic
    }

}

Primary Control - Gets the FormContext
Selected Control - Gets the GridContext

Hope this helps.

--
Happy CRM'ing
Gopinath

Viewing all articles
Browse latest Browse all 286

Trending Articles