[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

enabled/disable button on click

Posted on 2011-09-28
5
Medium Priority
?
372 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 60

Accepted Solution

by:
HainKurt earned 2000 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

650 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