Posted: 9/12/2011
I have default.aspx page on which i have opened a telerik rad window
function openRadWinFreq()
{ radopen("friendrequest.aspx","RadWindow1"); }
on friendrequest.aspx page having a submit button on which i want to close the rad window after submitting the data.(code behind)
actually i am not able to close the window please help me out
Hi,Did you try GetRadWindow().close()
Hi Raghav,
yes i had, like this way...
on friendrequest.aspx page added this script
<script type="text/javascript"> function GetRadWindow() { var oWindow = null; if (window.radWindow) oWindow = window.radWindow; else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; return oWindow; } function Close() { GetRadWindow().close(); } </script>
as my submit button has OnClick() event (to save user input) so i had called Close() function at codebehind like
Button1.Attributes.Add("OnCilentClick", "Close()");
but still it dosen't work
is it anything wrong?
Tell me one thing, when you click the submit button in modal? Does the page does postback?
user will enter some message in to the text box & click on the submit button
hense page is post back becoz i have to write code logic to save user message to DB on click of a button
i hope you will understand
Why don't you send an ajax request and the call the close logic of modal from client side
Posted: 9/13/2011
but how? please explain
pallavi karpe said: but how?
but how?