I have a client side function that fires when the "OnGridCreated" event is triggered. The code in there used to work fine, then we got an update, now we discover get_masterTableView() is returning null in some cases were it used to be ok. Any idea?
function onGridCreated(sender, eventArgs) {
if (rowIsSelected()) {
.....
function rowIsSelected() {
var getSeletecteRow=getSelectedRow();
......
function getSelectedRow() {
var employeeSummaryGrid = $find('<%=EmployeeSummaryGrid.ClientID%>');
if (employeeSummaryGrid != null)
{
var MasterTable = employeeSummaryGrid.get_masterTableView(); //this is returning null in some cases
return MasterTable.get_selectedItems()[0];
}
return null;
}