Hi Liji,
I have replied your support ticket. For convenience I am pasting my reply below:
The reason for this problem in your case is that you call a JavaScript function in the OnClientClick event handler which makes a postback to the server. You however, do not cancel the "original" postback - the one that happens when you click that button. What happens in your logic is that the JavaScript function is executed and a postback occurs (because of the __doPostback() function), but there is also a second postback that comes from the button itself.
To avoid that, you should cancel the original postback - OnClientClick ="fnOpenContractSelection()
; return false;"
Another thing that I noticed is that you are trying to send a custom argument to the server (as a second parameter in the __doPostback() function) - note that in this case, you would get an event validation error because of the ASP.NET 2x / 3x security. To avoid that you should either set EnablePageValidation to false for that page, or use
Page.ClientScript.RegisterForEventValidation() in Render.
Please note however that this issue is not related to the RadWindow control - you will get the same problem with any other standard controls.
Greetings,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items.