Solved

enabled/disable button on click

Posted on 2011-09-28
5
355 Views
Last Modified: 2012-08-14
I am using RadImage Editor and  I have a RadButton called btnSave. THis button is disabled but when user click RadImageEditor1_ToolsPanel_C_btnApply  which is the Crop's panel's Crop button, that time I want to enabled btnSave.. how can I do that?
0
Comment
Question by:1jaws
  • 3
5 Comments
 
LVL 12

Expert Comment

by:jagssidurala
ID: 36718796
0
 
LVL 51

Accepted Solution

by:
HainKurt earned 500 total points
ID: 36718801
http://demos.telerik.com/aspnet-ajax/imageeditor/examples/clientevents/defaultcs.aspx

here they implement this:

ImageChanged event: Image Operation 'Crop' was applied to the image.

So, grab this functionality and instead of message/log put line below:

document.getElementById("<%=btnSave.ClientID%>").disabled = false;
0
 

Author Comment

by:1jaws
ID: 36718983
HainKurt, here my code and no error but Save button still disabled after crop happened

 <telerik:RadButton ID="btnSave" runat="server" Text="Save"  
        OnClientClicked="Save" onclick="btnSave_Click"  Enabled="false" > </telerik:RadButton>

function OnClientImageChanged(sender, eventArgs)
{
   
    document.getElementById("<%=btnSave.ClientID%>").disabled = false;
}
</script>
0
 

Author Comment

by:1jaws
ID: 36720754
by using your code HainKurt, I modify a little bit.. and now works.. jagssidurala:, your links didnt help, but thanks for the reply.
0
 

Author Closing Comment

by:1jaws
ID: 36720757
thanks both
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question