Script error while using UI for MVC

5 posts, 0 answers
  1. Samir
    Samir avatar
    4 posts
    Member since:
    May 2016

    Posted 27 Jul Link to this post

    We are getting a script error in kendo.all.js file when tried to load the below text in Kendo Editor control, this causes the remaining kendo controls to stop rendering properly.

    The text has been copied from ms word and pasted to Editor control. The text is like the following, actually only the text is the only item that we copy from MS word but we are getting other formatting when we paste it to kendo editor.

     

    Also attaching a screenshot of the error we are getting.

    <span data-sheets-userformat="{"2":19005,"3":{"1":0},"5":{"1":[{"1":2,"2":0,"5":{"1":2,"2":0}},{"1":0,"2":0,"3":3},{"1":1,"2":0,"4":1}]},"6":{"1":[{"1":2,"2":0,"5":{"1":2,"2":0}},{"1":0,"2":0,"3":3},{"1":1,"2":0,"4":1}]},"7":{"1":[{"1":2,"2":0,"5":{"1":2,"2":0}},{"1":0,"2":0,"3":3},{"1":1,"2":0,"4":1}]},"8":{"1":[{"1":2,"2":0,"5":{"1":2,"2":0}},{"1":0,"2":0,"3":3},{"1":1,"2":0,"4":1}]},"12":0,"14":{"1":2,"2":0},"17":1}" data-sheets-value="{"1":2,"2":"REAL-TIME BUSINESS INTELLIGENCE ON THE 'PRODUCT MANAGEMENT' FUNCTION, DRIVEN BY ONGOING 360-DEGREE ENTERPRISE & STAKEHOLDER COLLABORATION:\n \u2022 ENGAGE internal employees and other key stakeholders in an ongoing 360-degree real-time feedback process that focuses onCritical Success Factors (CSFs)for the Product Management function.\n \u2022 EVALUATE the effectiveness of five key areas within the Product Management function: (1) People & Leadership, (2) Analytics & Insights, (3) Strategy & Planning, (4) Execution & Process, and (5) Performance & Results, with fully customizable 360-degree surveys.\n \u2022 LEVERAGE cutting-edge technology with Performax360 Unified Enterprise Performance Management Application Platform: Adaptive Neuro-Fuzzy Inference System, Context-Aware Intelligent Recommendation System, Stakeholder Sentiment Analysis driven by Cognitive Computing, the world's largest 'Best Practices' knowledgebase, Expert Panels comprising your Subject Matter Experts, and Real-Time Collaboration Hubs.\n \u2022 GAIN real-time, ongoing, and collaborative business intelligence on effectiveness trends within the Product Management function: identification of strengths and weaknesses, SWOT analysis, stakeholder sentiment analysis, Key Performance Indicators, and prioritized Ideas for Action.\n \u2022 VIEW & SHARE real-time assessment results through an interactive online format, or download them in PDF report or PowerPoint Presentation formats.\n \u2022 TRACK & MANAGE ongoing performance improvements within the Product Management function, by appointing a Key Person Accountable for specific action items, tracking real-time progress updates on action-plan implementation, and following task updates and real-time Gantt Charts.\n \n  "}" style="font-size:13px;font-family:arial, sans, sans-serif;font-weight:bold;">REAL-TIME BUSINESS INTELLIGENCE ON THE 'PRODUCT MANAGEMENT' FUNCTION, DRIVEN BY ONGOING 360-DEGREE ENTERPRISE & STAKEHOLDER COLLABORATION:<br />• ENGAGE internal employees and other key stakeholders in an ongoing 360-degree real-time feedback process that focuses onCritical Success Factors (CSFs)for the Product Management function.<br />• EVALUATE the effectiveness of five key areas within the Product Management function: (1) People & Leadership, (2) Analytics & Insights, (3) Strategy & Planning, (4) Execution & Process, and (5) Performance & Results, with fully customizable 360-degree surveys.<br />• LEVERAGE cutting-edge technology with Performax360 Unified Enterprise Performance Management Application Platform: Adaptive Neuro-Fuzzy Inference System, Context-Aware Intelligent Recommendation System, Stakeholder Sentiment Analysis driven by Cognitive Computing, the world's largest 'Best Practices' knowledgebase, Expert Panels comprising your Subject Matter Experts, and Real-Time Collaboration Hubs.<br />• GAIN real-time, ongoing, and collaborative business intelligence on effectiveness trends within the Product Management function: identification of strengths and weaknesses, SWOT analysis, stakeholder sentiment analysis, Key Performance Indicators, and prioritized Ideas for Action.<br />• VIEW & SHARE real-time assessment results through an interactive online format, or download them in PDF report or PowerPoint Presentation formats.<br />• TRACK & MANAGE ongoing performance improvements within the Product Management function, by appointing a Key Person Accountable for specific action items, tracking real-time progress updates on action-plan implementation, and following task updates and real-time Gantt Charts.<br /><br /></span>

  2. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 28 Jul Link to this post

    Hello Samir,

    I am somehow confused how exactly this problem is reproduced. I am unaware how exactly such content is pasted from Word. And whether the error you get happens when pasting from MS Word or during some other action. 

    Setting the content pasted in your message as initial text does not give me any errors and I am unable to exactly define how to reproduce the described issue. Here you are a dojo that shows the test case: http://dojo.telerik.com/EHiso.

    Please elaborate more on the case and provide more details about the steps needed to reproduce the described issue. If needed, you can create your own dojo example, attach the Word file you are using or provide any other resource that might help on reproducing the issue you are experiencing. 

    Regards,
    Ianko
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Samir
    Samir avatar
    4 posts
    Member since:
    May 2016

    Posted 29 Jul in reply to Ianko Link to this post

    I have created a demo in the following link.

    http://dojo.telerik.com/@godwin2423/EDaBa

    You can see the error in the console of your browser.

     

  5. Samir
    Samir avatar
    4 posts
    Member since:
    May 2016

    Posted 29 Jul in reply to Ianko Link to this post

    This is an addition to the previous post. In the console you will be seeing javascript error, also you can see that the page was designed to give a telerik dropdwon after the editor control, since the editor is breaking dropdown is not rendering as kendo dropdown.

     

  6. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 02 Aug Link to this post

    Hello Samir,

    The script error is due to the values in the data-sheets-userformat and data-sheets-value attributes. The double quotes are not escaped properly plus they are not HTML encoded. 

    So in order to resolve make sure to handle that properly. Here you are an example: http://dojo.telerik.com/igEnI

    Regards,
    Ianko
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET MVC is VS 2017 Ready