Вопрос

I have a subgrid on my contact entity.

This is image

I want that when the first record is selected in the subgrid above buttons enables and disables on uncheck.

I know how to enable diable button but i dont know where/how to call my function.

Это было полезно?

Решение

Try this code on the OnLoad Form event, to access the subgrid onClick Event.

function OnLoad() {
    var subGridId = gridId + "_d";

    var grid = document.getElementById(subGridId);

    if( grid != null){
        grid.onclick = ClickAction;
    }

}

function ClickAction() {
    //insert your Click action here.
}
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top