I have a simple RadWindow popup from a button using ContentTemplate - with a Cancel and an Update Button
the Cancel button closes the form fine with the following script
the Update needs to do something, then close the form
only it doesn't even close the form
help!
thanks
oh and clicking the Update also throws a JavaScript error in some Telerik Web script library
<
telerik:RadWindow
ID
=
"rwLumpSum"
Modal
=
"true"
Top
=
"0"
Left
=
"0"
VisibleOnPageLoad
=
"false"
runat
=
"server"
>
<
ContentTemplate
>
<
asp:UpdatePanel
ID
=
"cpLumpSum"
UpdateMode
=
"Conditional"
runat
=
"server"
>
<
ContentTemplate
>
<
table
>
<
tr
>
<
td
>Lump Sum</
td
>
<
td
>
<
telerik:RadNumericTextBox
ID
=
"rntbLumpSum"
MinValue
=
"1"
MaxValue
=
"999.99"
runat
=
"server"
>
<
NumberFormat
DecimalDigits
=
"2"
/>
</
telerik:RadNumericTextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
telerik:RadButton
id
=
"rbCancel"
Text
=
"Cancel"
OnClientClicked
=
"rbCancelClicked"
AutoPostBack
=
"false"
UseSubmitBehavior
=
"false"
runat
=
"server"
/>
</
td
>
<
td
>
<
telerik:RadButton
id
=
"rbUpdate"
Text
=
"Update"
runat
=
"server"
/>
</
td
>
</
tr
>
</
table
>
</
ContentTemplate
>
</
asp:UpdatePanel
>
</
ContentTemplate
>
</
telerik:RadWindow
>
the Cancel button closes the form fine with the following script
function
rbCancelClicked(button) {
var
rwLumpSum = $find(
"<%=rwLumpSum.ClientID%>"
);
rwLumpSum.Close();
}
the Update needs to do something, then close the form
only it doesn't even close the form
Protected
Sub
rbUpdate_Click(sender
As
Object
, e
As
EventArgs)
Handles
rbUpdate.Click
Dim
ws
As
CommonFunctions
Dim
sb
As
StringBuilder =
Nothing
do something here
sb =
New
StringBuilder(
"<SCRIPT language='javascript'>"
)
sb.Append(
"var rwLumpSum = $find("
)
sb.Append(Chr(34))
sb.Append(
"<%=rwLumpSum.ClientID%>"
)
sb.Append(Chr(34))
sb.Append(
");rwLumpSum.Close();"
)
sb.Append(
"</SCRIPT>"
)
ws =
New
CommonFunctions()
ScriptManager.RegisterStartupScript(
Me
,
Me
.
GetType
(),
"CloseWindow"
, sb.ToString,
False
)
End
Sub
help!
thanks
oh and clicking the Update also throws a JavaScript error in some Telerik Web script library