Hi Victor,
I have a similar problem I think:
I have a UserControl hosted in a page. This page has an ASPxCallbackPanel define like that:
<dxcp:ASPxCallbackPanel runat="server" ID="ASPxCallbackPanel1" ClientInstanceName="CallbackPanel">
It's working well.
Now I have a second ASPxCallbackPanel define in the UserControl define like that (this callbackpanel doesn't host the UserControl):
<dxcp:ASPxCallbackPanel runat="server" ID="CallbackPanelPopup" ClientInstanceName="CallbackPanelPopup" OnCallback="CallbackPanel_Callback" ClientVisible="true" HideContentOnCallback="false" ShowLoadingPanel
="true">
For this one, I cannot call the method PerformCallback properly from javascript.
Here is the generated code from the code source:
var dxo = new ASPxClientCallbackPanel('ctl00_phContentEmp_Popup_CallbackPanelPopup');
window[
'CallbackPanelPopup'] = dxo;
dxo.callBack =
function(arg) { WebForm_DoCallback('ctl00$phContentEmp$Popup$CallbackPanelPopup', arg, aspxCallback, 'ctl00_phContentEmp_Popup_CallbackPanelPopup', aspxCallbackError, true); };
dxo.uniqueID =
'ctl00$phContentEmp$Popup$CallbackPanelPopup';
dxo.EndCallback.AddHandler(
function(s, e) { OnEndCallback(); });
And here is what I try to do:
1) window[
"ctl00_phContentEmp_Popup_CallbackPanelPopup"].PerformCallback(postponedCallbackValue);
2) ctl00_phContentEmp_Popup_CallbackPanelPopup.PerformCallback(postponedCallbackValue);
3) window["CallbackPanelPopup"].PerformCallback(postponedCallbackValue);
The problem for 1) is "Object doesn't support this property or method"
For 2) it is the same error: "Object doesn't support this property or method"
And for the 3) I have this: "'window.CallbackPanelPopup' is null or not an object"
I'm a bit confused now... am I doing something wrong, or is there an other method to call the method?
Thanks,
Quentin