This is a migrated thread and some comments may be shown as answers.

Missing CausesValidation

1 Answer 41 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Neil
Top achievements
Rank 1
Neil asked on 26 Apr 2012, 05:23 PM
I discovered that clicking on certain toolbar buttons in the Image Editor triggers page validation but there is no CausesValidation attribute to turn this behavior off. Do you have a recommended way around this?

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 01 May 2012, 02:51 PM
Hello,

Indeed there is a problem with the validation. I logged the issue into our PITS system and you can track its progress. We will do our best to fix it for some of the upcoming releases. For the moment I would suggest the following solutions:
  • Inherit the RadImageEditor control and override the ControlPreRender method. Then find the toolbar controls and set their CausesValidation properties to false. See attached code to see how exactly it is done.
  • On the page where the RadImageEditor resides, get a reference to the ImageEditor control and find the toolbar controls, and again set their CausesValidation properties to false.The attached has example how to do this.

I have added 500 Telerik to your account for reporting this bug.

Greetings,
Pero
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ImageEditor
Asked by
Neil
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or