View Full Version : [CLOSED] How to pass parameters from child panel to parent panel ???

Jun 17, 2014, 2:21 PM
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.

Jun 17, 2014, 2:54 PM
If you are using a Loader, parameters could be passed in the Querystring of the Url.

Jun 18, 2014, 12:14 PM
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 }

// here show window in other method
Window win = form1.FindControl("Window4") as Window;

Jun 18, 2014, 1:33 PM
The Geoffrey's suggestion is to define parameter like this:

Url = "~/modules/Translation/Warranty.aspx?param1=value1&param2=value2"

Jun 18, 2014, 1:55 PM
sorry daniil
you don't understand me , i need to pass value from child to parent not parent to child

Jun 18, 2014, 2:10 PM
Please clarify what do you need to pass and at which moment?

Jun 18, 2014, 2:40 PM

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

Jun 18, 2014, 2:53 PM
You can access a parent page from a child page in JavaScript via the "parent" reference.

Jun 18, 2014, 3:03 PM
I made this code :

<Click Handler="parent.#{TextField68}.setValue(#{txtpackageCount}. getValue());" />

but it's not work with me.
so please help me by sending this code , in javascript or handler . please :)

Jun 18, 2014, 3:56 PM
#{} cannot work in that case.

Please try:

parent.App.TextField68.setValue(#{txtpackageCount} .getValue());

Jun 18, 2014, 4:04 PM
many thanks Daniil , it's works fine.
you can close thread now .