Solved

enabled/disable button on click

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 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