magritton
5/6/2014 - 2:12 PM

Get the grid values based on the row index on the client side in JavaScript

Get the grid values based on the row index on the client side in JavaScript

function onColAttViewButtonClick(gridIndex) {
    gvCollectionNotes.GetRowValues(gridIndex, 'CustomerNumber;CompanyName;ID', OnColGetATTViewRowValues);
}

//function is called when onAttViewButtonClick completes its callback
function OnColGetATTViewRowValues(values) {
    CustomerNum = values[0];
    CompanyName = values[1];
    var colID = values[2];

    gvColAttachments.PerformCallback(CustomerNum + "|" + CompanyName + "|" + "ShowData" + "|" + colID);
    popColDownload.Show();
}