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

source = Regex.Replace(source, @"\$\(document\)\.on\(""kendoReady"",", "$(document).ready(", RegexOptions.Multiline);

1 Answer 122 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
serge
Top achievements
Rank 2
Bronze
Iron
Iron
serge asked on 22 Apr 2021, 05:53 PM

what is that

source = Regex.Replace(source, @"\$\(document\)\.on\(""kendoReady"",", "$(document).ready(", RegexOptions.Multiline);

 

in the ASP.NET Core Examples code?

Should I understand that all the document.on('kendoReady' in fact should not be used, and instead "document.Ready" should be used ?

How a developer that usually copies only parts of examples should guess that hack?

 

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 27 Apr 2021, 12:29 PM

Hello,

Indeed, the kendoReady is used in our Demos and should be replaced by document.ready. There should be no issues even if copy-pasting part of the code of our examples. In case you face such an issue could you please send us more details about it so we could understand the problem better and provide appropriate assistance.

Regards,
Neli
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

serge
Top achievements
Rank 2
Bronze
Iron
Iron
commented on 27 Apr 2021, 06:27 PM

"Indeed, the kendoReady is used in our Demos and should be replaced by document.ready"... why do not use directly "document. ready" in your demos, instead of using a nonexistent in the commercial version event, that confuses developers by working only in demo site, and not on developer machines?
Ivan Danchev
Telerik team
commented on 30 Apr 2021, 11:42 AM

kendoReady is used due to specifics in the implementation of the demos project. In our live demos, in the View Source tab, the code is shown with document.ready, for example: https://demos.telerik.com/aspnet-core/panelbar/api

So far this is the first report for the event causing any confusion, but we will consider what options we have with regard to changing the current implementation and using document.ready. Thank you for the feedback.

Tags
General Discussions
Asked by
serge
Top achievements
Rank 2
Bronze
Iron
Iron
Answers by
Neli
Telerik team
Share this question
or