Won't Fix
Last Updated: 11 May 2016 08:16 by ADMIN
ADMIN
Danail Vasilev
Created on: 15 May 2013 11:35
Category: Button
Type: Bug Report
1
FIX the persistance of a SingleClick RadButton's state after click when its AutoPostBack property is set to false
When a SingleClick RadButton is clicked and its AutoPostBack property is set to false its disabled state as well as the optional text from the SingleClickText property are persisted. For the time being the SingleClick functionality can be set on the client. For example:
ASPX:
		<script type="text/javascript">
			function DoSubscriptionValidation(button, args) {
				var isPostBack = window.confirm("Perform postback?");
				button.set_autoPostBack(isPostBack);
				if (isPostBack) {
					button.set_singleClick(true);
					button.set_singleClickText("Please Wait");
					button.click();
				}
			}
		</script>
		<telerik:RadButton ID="RadButton1" runat="server" Text="Click"
			OnClick="OnClick1" OnClientClicking="DoSubscriptionValidation" />
C#:
	protected void OnClick1(object sender, EventArgs e)
	{
		System.Threading.Thread.Sleep(2000);
	}
1 comment
ADMIN
Nikolay
Posted on: 11 May 2016 08:16
The postback should be cancelled by args.set_cancel(true).