Hi,
I am trying to validate the columns in an inserted row client side and can't figure out how to get a reference to the individual columns in the inserted row.
I have tried the function listed below but it returns 'undefined'
I have seen an example where the javascript is added in the code behind and the column values are sent to the client but there are about 20 columns I want to validate and just want to be able to create the script on the page.
Any assistance would be appreciated.
Thank You
I am trying to validate the columns in an inserted row client side and can't figure out how to get a reference to the individual columns in the inserted row.
I have tried the function listed below but it returns 'undefined'
function SaveNew(sender, eventArgs) {
var masterTable = $find("<%= rgvMainGrid.ClientID %>").get_masterTableView();
//gets the HTML object of the insert item opened in the current GridTableView
var insertedItem = masterTable.get_insertItem();
alert(insertedItem[1]);
}
I have seen an example where the javascript is added in the code behind and the column values are sent to the client but there are about 20 columns I want to validate and just want to be able to create the script on the page.
Any assistance would be appreciated.
Thank You