AjaxEvent from a child.aspx to a parent.aspx

  1. #1

    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.aspx
    5) 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,
  2. #2

    RE: AjaxEvent from a child.aspx to a parent.aspx

    *Hi,

    It is impossible. You can call AjaxMethod od parent from child. Try something like this


    parent.window.Coolite.AjaxMethods.MyMethod();


  3. #3

    RE: AjaxEvent from a child.aspx to a parent.aspx

    Vlad,

    Using this tip, how would I pass the parameters from the ExtraParams to the AjaxMethod?

    Thank you,

Similar Threads

  1. Replies: 2
    Last Post: Nov 15, 2012, 12:52 AM
  2. Replies: 7
    Last Post: Jul 31, 2012, 8:31 PM
  3. Accessing MenuItem from Code-Behind(.aspx.cs)
    By kondareddy1984 in forum 1.x Help
    Replies: 3
    Last Post: Mar 14, 2011, 9:16 PM
  4. Windows in other aspx
    By maxelmetal in forum 1.x Help
    Replies: 1
    Last Post: Nov 06, 2009, 12:01 PM
  5. PagingSortingMemoryData.aspx
    By jlertle in forum Open Discussions
    Replies: 1
    Last Post: Jul 17, 2008, 5:47 AM

Posting Permissions