Editor within Panelbar

6 posts, 0 answers
  1. Greg
    Greg avatar
    9 posts
    Member since:
    Oct 2014

    Posted 19 Nov 2014 Link to this post

    I'm trying to get an editor inside of a panelbar to work.  The only way it works is if I have a pre-selected panel.  Without a pre-selected panel kendo dies with the error "TypeError: t is undefined".

    It seems I can only include the editor when there is a pre-selected panel.  No pre-selected panel and no editor works. 
    With the code below, activate either the data-role or the pre-selection class, and it will fail.

    <div id='main'>
          <ul
            data-role="panelbar"
            data-expand-mode="single"
            >
            <li xclass="k-state-active">
              Send Email
              <div style="padding: 10px;">
                <textarea
                  xdata-role='editor'
                  data-bind='value: emailBody'
                >
                </textarea>
              </div>         
            </li>
            <li>
              Send Text
              <div style="padding: 10px;">
                Text Stuff
              </div>
            </li>
            <li>
              Dymo label
              <div style="padding: 10px;">
                Label Stuff
              </div>
            </li>
          </ul>
        </div>
     
        <script>
          console.log(kendo.version)
     
          var viewModel = kendo.observable({
            emailBody: '',
             
            actionEmail: function(ev) {
            }
          })
     
          kendo.bind($("#main"), viewModel);
        </script>

  2. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 21 Nov 2014 Link to this post

    Hello Greg,

    There was such a problem in Firefox, and it was exhibited when the Editor was initialized when hidden. This is fixed now, please upgrade to the latest Kendo UI version.

    Regards,
    Dimo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Greg
    Greg avatar
    9 posts
    Member since:
    Oct 2014

    Posted 21 Nov 2014 in reply to Dimo Link to this post

    Thanks, that sort of works.  I updated to
    <script src="http://cdn.kendostatic.com/2014.3.1119/js/kendo.all.min.js"></script>

    When I try the same page I still get the TypeError but the panel and editor work.
  5. Greg
    Greg avatar
    9 posts
    Member since:
    Oct 2014

    Posted 21 Nov 2014 in reply to Greg Link to this post

    Small correction:
    The error is now TypeError: e is undefined
    Previously it was t that was undefined.
  6. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 25 Nov 2014 Link to this post

    Hi Greg,

    I don't see such an error:

    http://dojo.telerik.com/ozeLE

    If needed, feel free to modify the above example and send it back for inspection.

    Regards,
    Dimo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  7. Greg
    Greg avatar
    9 posts
    Member since:
    Oct 2014

    Posted 25 Nov 2014 in reply to Dimo Link to this post

    Ah, I found my problem.  I was using the latest jquery release.  Sorry for the false alarm.
Back to Top
Kendo UI is VS 2017 Ready