Mar 20, 2009, 5:56 PM
AjaxEvent from a child.aspx to a parent.aspx
Hello,
1) I have an <ext:Panel> control on a parent.aspx page
2) I use "AutoLoad" to load child.aspx page in the Panel
3) The child.aspx page contains the following AjaxEvent
<AjaxEvents>
<CellClick OnEvent="ShowPostBudgetDetails" Failure="Ext.MessageBox.alert('Load failed', 'Error during ajax event!');">
<ExtraParams>
<ext:Parameter Name="Grid1" Value="Ext.encode(#{postBudgetGrid1}.getRowsValues(true))" Mode="Raw" />
</ExtraParams>
</CellClick>
</AjaxEvents>
4) I would like to point to "ShowPostBudgetDetails" event on the parent.aspx5) The parent.aspx will display the <ext:window> control
I cannot find a clean way to do this. I have tried something like the following with no luck;
PostBudgetCntrl obj = new PostBudgetCntrl();
obj = (PostBudgetCntrl)this.FindControl("PostBudgetCtrlascx1"); //This comes back null
obj.ShowWindow(); // so... this fails
The Idea was to dispaly the window on top of the parent.aspx instead on the child.aspx.Any Ideas?
Thank you in advance,