Dear support team,
i have this problem.
I'm trying to disable the Telerik button after the click.
When i use the ASP:Button it works. When i use Telerik button, is not working.
Can you please help me with this?
Below you will find my code.
Javascript:
function disableBtn(btnID, newText) {
var btn = document.getElementById(btnID);
btn.disabled = true;
btn.value = newText;
}
Telerik Button:
<asp:UpdatePanel runat="server" ID="Panel">
<ContentTemplate>
<telerik:RadButton ID="btnSave" runat="server" ButtonType="LinkButton" Text="Proccess"
Width="50px" BorderColor="#006699" BorderStyle="Solid" BorderWidth="1px" ForeColor="#003366"
Height="40px" CssClass="SmallRadButtonsTop corners-all" Font-Size="Small" ValidationGroup="SaveOrder"
Enabled="False" Skin="Windows7" HoveredCssClass="ShadowOver" PressedCssClass="ShadowClick"
OnClientClicked="disableBtn(this.id, 'Submitting...')">
<Icon PrimaryIconUrl="~/Images/Save2.gif" PrimaryIconHeight="30" PrimaryIconWidth="50" />
</telerik:RadButton>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID="progress1" runat="server" AssociatedUpdatePanelID="Panel">
<ProgressTemplate>
<div class="">
<asp:Image runat="server" ImageUrl="images/loading.gif" />
<br />
Your Request is in Proccess.
<br />
Please Wait...
</div>
</ProgressTemplate>
</asp:UpdateProgress>
Thank you in advance for you help.
Best Regards,
George.
Technology Department.
i have this problem.
I'm trying to disable the Telerik button after the click.
When i use the ASP:Button it works. When i use Telerik button, is not working.
Can you please help me with this?
Below you will find my code.
Javascript:
function disableBtn(btnID, newText) {
var btn = document.getElementById(btnID);
btn.disabled = true;
btn.value = newText;
}
Telerik Button:
<asp:UpdatePanel runat="server" ID="Panel">
<ContentTemplate>
<telerik:RadButton ID="btnSave" runat="server" ButtonType="LinkButton" Text="Proccess"
Width="50px" BorderColor="#006699" BorderStyle="Solid" BorderWidth="1px" ForeColor="#003366"
Height="40px" CssClass="SmallRadButtonsTop corners-all" Font-Size="Small" ValidationGroup="SaveOrder"
Enabled="False" Skin="Windows7" HoveredCssClass="ShadowOver" PressedCssClass="ShadowClick"
OnClientClicked="disableBtn(this.id, 'Submitting...')">
<Icon PrimaryIconUrl="~/Images/Save2.gif" PrimaryIconHeight="30" PrimaryIconWidth="50" />
</telerik:RadButton>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID="progress1" runat="server" AssociatedUpdatePanelID="Panel">
<ProgressTemplate>
<div class="">
<asp:Image runat="server" ImageUrl="images/loading.gif" />
<br />
Your Request is in Proccess.
<br />
Please Wait...
</div>
</ProgressTemplate>
</asp:UpdateProgress>
Thank you in advance for you help.
Best Regards,
George.
Technology Department.