function TemplateSelected2() {
if (window.opener != null && window.opener.StartNewLineItem != null) {
// Call the parent window function to create a new line item
if (templateID != "") {
window.opener.StartNewLineItem(templateID);
}
window.close();
}
}
Back on the main form, StartNewLineItem is meant to invoke the insert mode of the RadGrid
function StartNewLineItem(templateID) {
alert("start new line item");
alert(templateID);
// Start a new line item
var tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
tableView.IsItemInserted = true;
tableView.rebind();
// Copy values from the selected template into the new line item
// <TODO>
alert("after insert mode");
}
The code runs without error, but does not put the RadGrid in Insert mode.
Is there a particular setting needed besides setting IsItemInserted=true and calling rebind() ?
Thanks.