protected virtual void GenerateAjaxResponseScript()
{
StoreResponseData dataResponse = new StoreResponseData();
dataResponse.Data = this.GetAjaxDataJson();
PageProxy dsp = this.Proxy.Proxy as PageProxy;
if (dsp == null && this.Proxy.Proxy != null)
{
return;
}
dataResponse.Total = dsp != null ? dsp.Total : 0;
Response response = new Response(true);
response.Data = dataResponse.ToString();
this.AddScript(this.ClientID.ConcatWith(".callbackRefreshHandler(response, {serviceResponse: ", new ClientConfig().Serialize(response), "}, ", this.ClientID, ", o.eventType, o.action, o.extraParams);"));
this.ajaxDataBindingRequired = false;
}