I have an asp.net page with a RadGrid that displays insurance agents.
The page opens a web user control for editing the insurance agent. That
control also has a button that uses the RadWindowManager to show another
page as a dialog that contains a RadGrid that displays insurance
companies. When the insurance companies window is closed I need to add
the selected insurance companies to the insurance agent being edited.
The RadWindowManager seems to do something to interfere with the
insurance company RadGrid's ClientID because the script returns just the
ID entered at design time. I have also tried using the Page_PreRender
event to add the script, but the ClientID is still wrong. I am willing
to change how I am doing this if there is a better way.
The .aspx page RadWindowManager code:
The .aspx page RadWindowManager code:
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
runat
=
"server"
>
<
Windows
>
<
telerik:RadWindow
ID
=
"RadWindow1"
runat
=
"server"
OnClientClose
=
"onInsuranceCompanyListClose"
ShowContentDuringLoad
=
"false"
Modal
=
"true"
Width
=
"800px"
Height
=
"600px"
Title
=
"Add Insurance Companies"
VisibleStatusbar
=
"false"
Behaviors
=
"Move, Close"
>
</
telerik:RadWindow
>
</
Windows
>
</
telerik:RadWindowManager
>
... other page code
<
button
type
=
"button"
class
=
"btn"
onclick
=
"addInsuranceCompany()"
>Add</
button
>
... still more code
<
script
type
=
"text/javascript"
>
function addInsuranceCompany() {
radopen("InsuranceCustomerSelection.aspx", "RadWindow1");
}
function onInsuranceCompanyListClose(oWnd, args) {
alert(args.length + ' args');
}
</
script
>