Scott Laughton
Top achievements
Rank 1
Scott Laughton
asked on 07 Oct 2009, 04:36 AM
Hi there,
I can't seem to see any event that is raised when the Cancel button is pressed on the RadProgressArea. How can I perform a ClientSide action when the Cancel button in the RadProgressArea is pressed?
Regards,
Scott.
I can't seem to see any event that is raised when the Cancel button is pressed on the RadProgressArea. How can I perform a ClientSide action when the Cancel button in the RadProgressArea is pressed?
Regards,
Scott.
6 Answers, 1 is accepted
0
Hello Scott Laughton,
You can use the following code in order to attach a click handler to the cancel button. Please, place your code inside the click handler:
Kind regards,
Genady Sergeev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
You can use the following code in order to attach a click handler to the cancel button. Please, place your code inside the click handler:
<script type=
"text/javascript"
>
$(document).ready(
function
() {
var
area = $find(
"RadProgressArea1"
);
$telerik.$(
".ruCancel"
, area.get_element())
.click(
function
(e) {
// invoke your function here
});
});
</script>
Kind regards,
Genady Sergeev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Basel Nimer
Top achievements
Rank 2
answered on 30 Oct 2009, 05:02 PM
Excellent, Thank you.
Have one question though, what i wanted is a button to show and hide the progress. i could use the cancel to hide the window but it also cancels the upload. and i think there is a way to cancel the cancel event, but what if the use really wants to cancel the upload.
My question is: can i add another button beside the cancel button to hide the progress?
Thank you for the best support on the internet.
Have one question though, what i wanted is a button to show and hide the progress. i could use the cancel to hide the window but it also cancels the upload. and i think there is a way to cancel the cancel event, but what if the use really wants to cancel the upload.
My question is: can i add another button beside the cancel button to hide the progress?
Thank you for the best support on the internet.
0
Hello Basel Nimer,
You can easily add a new button, unfortunately hiding the area is not possible because when uploading, the area is being updated on every second. You can hide it, however it is going to pop up again just a moment later. Unfortunately there is no workaround to this issue, except for not using the area at all.
All the best,
Genady Sergeev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
You can easily add a new button, unfortunately hiding the area is not possible because when uploading, the area is being updated on every second. You can hide it, however it is going to pop up again just a moment later. Unfortunately there is no workaround to this issue, except for not using the area at all.
All the best,
Genady Sergeev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Basel Nimer
Top achievements
Rank 2
answered on 04 Nov 2009, 04:50 PM
well, I used a little trick, but i am not sure if i did the right thing now.
I put the area inside a rad tooltip, and i am hiding the tooltip. but i only did that when cancel is clicked, thats why i am asking for a new button.
can you please show me how to add a button? (i also need to add an image to the header of the area). so that i can try this trick again?
I put the area inside a rad tooltip, and i am hiding the tooltip. but i only did that when cancel is clicked, thats why i am asking for a new button.
can you please show me how to add a button? (i also need to add an image to the header of the area). so that i can try this trick again?
0
Basel Nimer
Top achievements
Rank 2
answered on 08 Nov 2009, 07:58 PM
Anything?
0
Vesko
Top achievements
Rank 2
answered on 09 Nov 2009, 03:32 PM
You can check the Progress Area Template