or
Sys._ScriptLoader.getInstance()._loadScriptsInternal = function () {
if (this._scriptsToLoad && this._scriptsToLoad.length > 0) {
var nextScript = Array.dequeue(this._scriptsToLoad);
var scriptElement = this._createScriptElement(nextScript);
if (scriptElement.text && Sys.Browser.agent === Sys.Browser.Safari) {
scriptElementscriptElement.innerHTML = scriptElement.text;
delete scriptElement.text;
}
if (typeof (nextScript.src) === "string") {
this._currentTask = new Sys._ScriptLoaderTask(scriptElement, this._scriptLoadedDelegate); this._currentTask.execute();
}
else {
document.getElementsByTagName('head')[0].appendChild(scriptElement); Sys._ScriptLoader._clearScript(scriptElement);
this._loadScriptsInternal();
}
}
else {
var callback = this._allScriptsLoadedCallback;
this._stopLoading();
if (callback) {
callback(this);
}
}
}this._stopLoading();
Private Sub grdReadiness_ItemDataBound(sender As Object, e As GridItemEventArgs) Handles grdReadiness.ItemDataBound If TypeOf e.Item Is GridDataItem Then Dim item As GridDataItem = DirectCast(e.Item, GridDataItem) Dim imgStageStatus As Image = TryCast(e.Item.FindControl("imgStageStatus"), Image) If Not imgStageStatus Is Nothing Then If item("StageStatus").Text = "GREEN" Then imgStageStatus.ImageUrl = "~/Images/Green24.png" Else imgStageStatus.ImageUrl = "~/Images/Red24.png" 'grdReadiness.Items(e.Item.RowIndex).Expanded = True 'e.Item.OwnerTableView.ParentItem.Expanded = True 'e.Item.OwnerTableView.GroupsDefaultExpanded = True 'grdReadiness.Items(e.Item.GroupIndex).Expanded = True End If End If End IfEnd Sub