Completed
Last Updated: 19 Jun 2015 05:51 by ADMIN
ADMIN
Danail Vasilev
Created on: 11 Jun 2015 06:50
Category: Button
Type: Bug Report
0
Checked property of RadButton is not preserved during postbacks when set on initial page load
For the time being you can place the following JavaScript workaround at the end of the form:
		<script>
			$T = Telerik.Web.UI;
			$T.RadButton.prototype.initialize = function () {
				var that = this;
				$T.RadButton.callBaseMethod(that, "initialize");

				//if the button is in RTL parent apply rbRtl CSS class to the holding element
				that._setRightToLeft();

				that._createToggleStates();

				that._requestIconsAndImages();

				if (that.get_checked()) {
					that.clearCheckedRadios(that.get_uniqueGroupName());
				}
				$T.registerRadButton(that);

				that._initModules();

				that._initHTML();
				that._attachClickEvent(true);
				if (that.get_enabled() && !that.get_readOnly()) {
					that._attachEvents(true);
				}
				that.updateClientState();
				that.raiseEvent('load', Sys.EventArgs.Empty);
			};
		</script>
1 comment
ADMIN
Joana
Posted on: 19 Jun 2015 05:51
The issue will be fixed in Q2 2015.