Hi,
I have a form with a link. Clicking on the link, am opening a radwindow from the code behind( have to go with code behind since i have to do extra checkes before opening the window) as
The radwindow popup page has a close (X) button, OK button, and a grid with a column with link.
When i click on Ok button and Links on the grid, am calling a javascript function which will close and then reload the parent page using the querystrings from the popup window.
Now when i click the close (X) button also, i need to close the window and reload the parent page but without any changes to the querystring values. I dont want to use __dopostback() coz there are other issues if i go with that method
I tried the onclientclose event, but that will be fired on all the 3 above scenarios (Close (X) button, OK button and Link click)..
so my question is, is there a way i can identify whether i had clicked the Close (X) button to close the window. So that i can check for this in my OnClientClose function and do what i require?
Any help is greatly appreciated.
Thanks
Sujith
I have a form with a link. Clicking on the link, am opening a radwindow from the code behind( have to go with code behind since i have to do extra checkes before opening the window) as
Radwindow1.VisibleOnPageLoad =
true;
Radwindow1.NavigateUrl = url;
The radwindow popup page has a close (X) button, OK button, and a grid with a column with link.
When i click on Ok button and Links on the grid, am calling a javascript function which will close and then reload the parent page using the querystrings from the popup window.
Now when i click the close (X) button also, i need to close the window and reload the parent page but without any changes to the querystring values. I dont want to use __dopostback() coz there are other issues if i go with that method
I tried the onclientclose event, but that will be fired on all the 3 above scenarios (Close (X) button, OK button and Link click)..
so my question is, is there a way i can identify whether i had clicked the Close (X) button to close the window. So that i can check for this in my OnClientClose function and do what i require?
Any help is greatly appreciated.
Thanks
Sujith