Telerik Forums
Kendo UI for jQuery Forum
1 answer
1.6K+ views

Hi, 

I am seeing error with Kendo Editor : Uncaught TypeError: Cannot use 'in' operator to search for 'getSelection' in undefined. Editor loads and render fine. When text value is changed or updated in the editor in edit mode and then if I click outside of editor , js error is shown right away.  Have tried calling refresh() on change event, that still gives me same error.  If I call refresh on editor select event, it prevents the error, but won't let user type due to focus. Will have to click and hold the mouse down while typing to not lose focus instantly to use refresh method.

Browser: Chrome.

onEditorSelect: function (e) {
  var editor = e.sender.element.closest('[data-role="editor"]').data('kendoEditor');
  editor.refresh();   
 }
 onEditorChange: function (e) {
   var test = $(".page-editor").find("[data-role=editor]").data("kendoEditor");
    test.refresh();
}

 

Stack Trace/Error

kendo.all.js:75062 Uncaught TypeError: Cannot use 'in' operator to search for 'getSelection' in undefined
at Object.selectionFromWindow (kendo.all.js:75062)
 at Object.selectionFromDocument (kendo.all.js:75075)
 at init.getSelection (kendo.all.js:73878)
 at init.getRange (kendo.all.js:73886)
 at init.refreshTools (kendo.all.js:76998)
 at init.value (kendo.all.js:73799)
 at init.refresh (kendo.all.js:9960)
 at init.<anonymous> (kendo.all.js:9070)
 at init.trigger (kendo.all.js:192)
  at init.change (kendo.all.js:8900)

 

View

<div class="page-editor"
                 data-bind="visible: TestCheck">
                <textarea data-role="editor"
                          class="editor"
                          id="TestEditor"
                          style="height: 100px;"
                          data-tools="['bold',
                        'italic'']"
                           data-bind="value: Text,
                        events: {
                            select: onEditorSelect,
                            select: onEditorChange
                        }">
            </textarea>
            </div>
Neli
Telerik team
 answered on 01 Oct 2020
6 answers
348 views

Hi,

I need to know if using Telerik for jQuery controls I can make a specific kind of a flow chart. I need to have a list with order (sortable control would be good for this I quess), but also every element in this list should be able to connect with another one and store the information which one is connected to which (one-way) with option to filter out the ones that cannot be connected. I hope it's not too confusing ;P

 

Regards

Alex Hajigeorgieva
Telerik team
 answered on 01 Oct 2020
3 answers
2.0K+ views
Hi , i have the following question , i have a registration form with email, password, and confirm password inside a div wrapper. i would like after the validation checks if all fields are correct and filled to check if the input type password for the label password field and the input type password for the label confirm password field match.
Is there a way to do that with kendo or should i reffer to plain javascript?

thanks in advance
Neli
Telerik team
 answered on 30 Sep 2020
7 answers
1.4K+ views

Hello, 

 

After the last release (Kendo UI R2 2020 SP1) an issue occurred related with columns "menu" option, the case is if when a column have menu set to false, then you try to hide / show other columns from column menu , it keeps the index of column that have menu to false and shows or hides wrong column.

Please find attached a GIF image representing the issue, also here is a link with code snipped https://dojo.telerik.com/@fedrosa/IquNEFAH

 

Thank you

 

Alex Hajigeorgieva
Telerik team
 answered on 30 Sep 2020
3 answers
427 views
Could you provide a cheat sheet and/or video in how would you best leverage VS 2010 with Kendo UI? Best regards G
Misho
Telerik team
 answered on 30 Sep 2020
1 answer
857 views

Hi 

I have a multi selft dropdown list in mvvm.

to make the choices selected a little bit smaller I wiuld like to remove the x delete cross. Attached pic shows what i mean.

 

Is it through css or a setting?

 

Any help wil be appreciated.

 

Gary

 

 

Neli
Telerik team
 answered on 30 Sep 2020
3 answers
546 views

Dear Sir/Madam,

I have a transposed Kendo grid on a page (as described here) where I am trying to mimic the Kendo grid's popup editor using a Form inside a Kendo Window. Clicking an edit button causes a window to be created along with its contained form. This works as expected on the first click since I see the values of the object passed in via the formData property appearing on the form. Submitting the form closes the window and attempts to destroy the form so it can be recreated on subsequent requests to edit the underlying object. Clicking the same edit button a second time should display the same form with its fields populated as the first time. For some reason this is not happening; the fields of the form are blank.

I've replicated the scenario in the following dojo: https://dojo.telerik.com/UsIQijOG

Steps to reproduce:

  1. Click on the "Show Form" button to display a form where the fields are populated
  2. Click on the "Submit" button of the form to close the window
  3. Click on the "Show Form" button to display a form where the fields are blank

Any assistance would be much appreciated. Thank you in advance.

Herrick

Petar
Telerik team
 answered on 30 Sep 2020
4 answers
919 views

Please see this sample code I have, I am trying to reload data from a remote server into the spreadsheet with every click of the button.

 

The issue is after clicking the search button a second  time to fetch new data, the spreadsheet is appended with a new one.

 

What is the proper way to reload data into the spreadsheet?

 

Link to sample code

https://dojo.telerik.com/ewigOKam

Philip
Top achievements
Rank 1
Veteran
Iron
 answered on 29 Sep 2020
8 answers
2.0K+ views
Is it possible to change the text of the paging area in the grid?  Specifically, I'm talking about the "1-10 of 50 items".  We need to change it to something like "1-10 of 50 books".
Tsvetomir
Telerik team
 answered on 29 Sep 2020
7 answers
1.3K+ views

In the change event, is there any way to get the underlying data item of the selected node?

For a treeview control we can get the data item with something like this in the select event:

var dataItem = myTree.dataItem(e.node);

However, there's no "node" attribute in the change event for DropDownTree.

How do we do this?

Ivan Danchev
Telerik team
 answered on 29 Sep 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?