Get GridContext form the button on the Subgrid – SelectedControl

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s