Solved

enabled/disable button on click

Posted on 2011-09-28
5
350 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now