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

Editor within Panelbar

5 Answers 88 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 19 Nov 2014, 07:06 PM
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>

5 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 21 Nov 2014, 12:55 PM
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!
 
0
Greg
Top achievements
Rank 1
answered on 21 Nov 2014, 04:04 PM
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.
0
Greg
Top achievements
Rank 1
answered on 21 Nov 2014, 08:06 PM
Small correction:
The error is now TypeError: e is undefined
Previously it was t that was undefined.
0
Dimo
Telerik team
answered on 25 Nov 2014, 01:14 PM
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!
 
0
Greg
Top achievements
Rank 1
answered on 25 Nov 2014, 01:28 PM
Ah, I found my problem.  I was using the latest jquery release.  Sorry for the false alarm.
Tags
PanelBar
Asked by
Greg
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Greg
Top achievements
Rank 1
Share this question
or