Pending Review
Last Updated: 02 Feb 2017 11:59 by ADMIN
Created by: Marin Bratanov
Comments: 0
Category: Button
Type: Bug Report
select an item from the dropdown, different than "1"
expected: buttons become enabled
actual: radbutton is still disabled

        <asp:Button ID="ButtonTest" runat="server" enabled="true" Text="Test" EnableViewState="False" />
        <telerik:RadPushButton ID="RadButtonTest" runat="server" Text="RadButtonTest" Enabled="True" EnableViewState="False" RenderMode="Lightweight"></telerik:RadPushButton>
        <asp:DropDownList runat="server" ID="DropDownTest" AutoPostBack="True" OnSelectedIndexChanged="SelectedIndexChanged_Test">
                <asp:ListItem Text="1" Value="1"></asp:ListItem>
                <asp:ListItem Text="2" Value="2"></asp:ListItem>
                <asp:ListItem Text="3" Value="3"></asp:ListItem>
                <asp:ListItem Text="4" Value="4"></asp:ListItem>

		protected void Page_LoadComplete(object sender, EventArgs e)
			if (DropDownTest.SelectedValue == "1")
				ButtonTest.Enabled = false;
				RadButtonTest.Enabled = false;
				string script = string.Format("function f(){{$find('{0}').set_enabled({1});Sys.Application.remove_load(f);}}Sys.Application.add_load(f);",
				ScriptManager.RegisterStartupScript(Page, Page.GetType(), "someKey", script, true);

		protected void SelectedIndexChanged_Test(object sender, EventArgs e)
Pending Review
Last Updated: 11 Mar 2016 13:09 by ADMIN
A JavaScript error is thrown when a button with AutoPostback enabled on the client-side is clicked in IE.

Note: The error is thown only when the AutoPostback is enabled in the ClientClicked event handle, but not in ClientClicking.

JavaScript error:
SCRIPT5007: Unable to get property 'controlState' of undefined or null reference
File: ScriptResource.axd, Line: 658, Column: 38