Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 78072

how do i conditional set the visibility of the Command.Edit button on a row by row basis?

$
0
0

In case it's helpful to someone I had a case where I was attempting the same with an ajax-bound grid that had grouped columns and had to modify the loop in the onDataBound function in Dimiter's solution to something like:

for(varg = 0; g < gridData.length; g++) {
    for(vari1 = 0; i1 < gridData[g].items.length; i1++) {
        for(vari2 = 0; i2 < gridData[g].items[i1].items.length; i2++) {
            for(vari3 = 0; i3 < gridData[g].items[i1].items[i2].items.length; i3++) {
                varcurrentUid = gridData[g].items[i1].items[i2].items[i3].uid;
                if(gridData[g].items[i1].items[i2].items[i3].ProcessedDate != null) {
                    varcurrentRow = grid.table.find("tr[data-uid='"+ currentUid + "']");
                    $(currentRow).find(".k-grid-Edit").hide();
                }
            }
        }
    }
}

Viewing all articles
Browse latest Browse all 78072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>