[CLOSED] How to pass parameters from child panel to parent panel ???

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] How to pass parameters from child panel to parent panel ???

    Dear All
    I tried many times to pass parameters from child panel to parent panel , but till now i can't :(
    can you please help me.
    Last edited by Daniil; Jun 18, 2014 at 5:32 PM. Reason: [CLOSED]
  2. #2
    If you are using a Loader, parameters could be passed in the Querystring of the Url.
    Geoffrey McGill
    Founder
  3. #3

    simple code

    can you please help me by sending me a simple code.

    this is my code to create the child window

            Window win4 = new Window()
            {
                ID = "Window4",
                Width = Unit.Pixel(1150),
                Height = Unit.Pixel(480),
                Modal = true,
                AutoRender = false,
                Collapsible = true,
                Maximizable = true,
                Hidden = true,
                Loader = new ComponentLoader
                {
                    AutoLoad = true,
                    Url = "~/modules/Translation/Warranty.aspx",
                    Mode = LoadMode.Frame,
                    LoadMask = { ShowMask = true }
                }
            };
    
    
            this.form1.Controls.Add(win4);
    //---------------------------------------------------------------------
    // here show window in other method
    Window win = form1.FindControl("Window4") as Window;
                win.Show();
    Last edited by elbanna23; Jun 18, 2014 at 12:18 PM.
  4. #4
    The Geoffrey's suggestion is to define parameter like this:
    Url = "~/modules/Translation/Warranty.aspx?param1=value1&param2=value2"
  5. #5
    sorry daniil
    you don't understand me , i need to pass value from child to parent not parent to child
  6. #6
    Please clarify what do you need to pass and at which moment?
  7. #7


    I need the user when select gridpanel record (in child panel) , pass value from selected record to parent panel , i already get the value but i need to pass it back to parent panel
    Attached Thumbnails Click image for larger version. 

Name:	childtoparent.PNG 
Views:	37 
Size:	57.3 KB 
ID:	12801   Click image for larger version. 

Name:	childtoparent.PNG 
Views:	99 
Size:	83.9 KB 
ID:	12811  
    Last edited by elbanna23; Jun 18, 2014 at 2:45 PM. Reason: update attachment
  8. #8
    You can access a parent page from a child page in JavaScript via the "parent" reference.
  9. #9
    I made this code :
      <Listeners>
                <Click Handler="parent.#{TextField68}.setValue(#{txtpackageCount}.getValue());" />
            </Listeners>
    but it's not work with me.
    so please help me by sending this code , in javascript or handler . please :)
    Last edited by elbanna23; Jun 18, 2014 at 3:13 PM. Reason: update content
  10. #10
    #{} cannot work in that case.

    Please try:
    parent.App.TextField68.setValue(#{txtpackageCount}.getValue());
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 5
    Last Post: Feb 10, 2014, 3:16 AM
  2. Replies: 5
    Last Post: Jan 17, 2014, 10:29 AM
  3. How to pass DataTable to child page from parent Page
    By praveencat123 in forum 1.x Help
    Replies: 0
    Last Post: Dec 04, 2013, 10:08 AM
  4. Replies: 6
    Last Post: Sep 24, 2013, 6:55 AM
  5. Replies: 1
    Last Post: Feb 03, 2012, 2:36 PM

Tags for this Thread

Posting Permissions