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

.Encode(false) and ViewHtml() triggers change event

4 Answers 182 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Stéphan Parrot
Top achievements
Rank 1
Stéphan Parrot asked on 27 Aug 2013, 02:46 PM
Hello folks,
     If I set up an editor and set .Encode() to false OR specify .ViewHtml(), as soon as I click in the editor or show the Html by pressing the View Html button, the change event is fired which isn't really true from a user perspective.
Is there a way to prevent that behavior OR is there a way to know it's the encoding (or any other internal mechanism of the component) that fires the change so I can handle it properly?
What I want to achieve is, when the editor changes, I want to set a page dirty flag so I can notify the user something changed and wasn't saved in the editor.

Regards,

Stephan

4 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 29 Aug 2013, 10:13 AM
Hello Stephan,

Thank you for bringing the issue to our attention. The problem is now fixed and changes will take effect in the next internal and official builds.

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Stéphan Parrot
Top achievements
Rank 1
answered on 29 Aug 2013, 11:49 AM
That was quick! :)

Which should I get?
kendoui.aspnetmvc.2013.2.823.commercial 
OR
kendoui.aspnetmvc.hotfix.2013.2.823.commercial ?

Thanks!
0
Accepted
Dimo
Telerik team
answered on 29 Aug 2013, 12:35 PM
Hi Stephan,

Build 2013.2.823 is from August 23. The discussed fix has been implemented on August 29. We usually upload a new internal build once a week.

The difference between the two builds that you have mentioned is that "hotfix" does not include demos.

On a side note, please do not post duplicate support tickets or forum threads, because this may lead to several people working on the same issue.

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Stéphan Parrot
Top achievements
Rank 1
answered on 29 Aug 2013, 12:50 PM
Yes I've realized this afterwards that I should have posted only a bug and not a forum post.
Sorry about that! 
Thanks for the infos! I'll watch for the release of the next internal build!
Tags
Editor
Asked by
Stéphan Parrot
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Stéphan Parrot
Top achievements
Rank 1
Share this question
or