Telerik Forums
Kendo UI for jQuery Forum
3 answers
68 views
Hello,
I am getting a strange error when I use KendoGrid (Angular). The following is the stack trace. Can some one please let me know whats going on?

Thanks
Matt'M

TypeError: Object function JQLite(element) {
if (element instanceof JQLite) {
return element;
}
if (!(this instanceof JQLite)) {
if (isString(element) && element.charAt(0) != '<') {
throw Error('selectors not implemented');
}
return new JQLite(element);
}

if (isString(element)) {
var div = document.createElement('div');
// Read about the NoScope elements here:
// http://msdn.microsoft.com/en-us/library/ms533897(VS.85).aspx
div.innerHTML = '<div>&#160;</div>' + element; // IE insanity to make NoScope elements work!
div.removeChild(div.firstChild); // remove the superfluous div
JQLiteAddNodes(this, div.childNodes);
this.remove(); // detach the elements from the temporary DOM div.
} else {
JQLiteAddNodes(this, element);
}
} has no method 'extend'
at gatherOptions (http://localhost:3000/no_npm_vendor/kendo/angular-kendo.js:39:35)
at Object.create (http://localhost:3000/no_npm_vendor/kendo/angular-kendo.js:107:19)
at http://localhost:3000/no_npm_vendor/kendo/angular-kendo.js:164:36
at <error: illegal access>
at completeOutstandingRequest (http://localhost:3000/vendor/angular/angular.js:3041:10)
at http://localhost:3000/vendor/angular/angular.js:3327:7 angular.js:5754(anonymous function)angular.js:5754(anonymous function)angular.js:4846(anonymous function)angular.js:9476completeOutstandingRequestangular.js:3041(anonymous function)
Burke
Telerik team
 answered on 02 Aug 2013
5 answers
90 views
If Kendo cannot find a route, method "routeMissing" is called. When that method gets executed, the URL has already changed. What can be done, so the current view and the browser's URL do not change?

I tried to call preventDefault on the event object, as can be done in the change event. However, that did not work.

Michael G. Schneider
Zachary
Top achievements
Rank 1
 answered on 01 Aug 2013
1 answer
196 views
Hi,

We have a grid with many columns with editor templates defined. We also have many custom validations based on the values of these columns.

eg. One column is a drop down with Status and another column is a datepicker with Date.

When we change the Date we want to check the value of the Status dropdown in the custom validation. How can we do this?

Currently when we change the status from StatusOne to StatusTwo, and then change the date field we need to be able to access the current value of StatusID for that row. But it shows the old value of StatusID (StatusOne) when we try to access it via the grid instead of StatusTwo.

                        var gd = $('#gds').data("kendoGrid");
                        var inputName = input.attr("id");
                        var rowIndex = input.context.rowIndex;
                        var StatusID = gd._data[rowIndex].StatusID;

Please let us know how to access the current value.

Thanks,

Sherly
Greg
Top achievements
Rank 1
 answered on 01 Aug 2013
0 answers
142 views
When I give the scheduler event the startTime of "Thu Aug 01 2013 11:00:00 GMT-0700 (Pacific Daylight Time)" the scheduler shows the time as 6PM.

When I give it "Thu Aug 01 2013 18:00:00 GMT-0700 (Pacific Daylight Time)" it shows as 1AM.

I don't know what I am doing wrong, how do I tell the scheduler to show it in the time I want (which is 11AM PST).


UGH - I figured it out, the example had the timezone set:
timezone: "Etc/UTC",
Aaron
Top achievements
Rank 1
 asked on 01 Aug 2013
1 answer
133 views
Hi,
Web page is  freezes when data
is binding to chart. We are using kendoui version “Kendo UI Complete
v2012.2.710”.
Please advise.

Iliana Dyankova
Telerik team
 answered on 01 Aug 2013
5 answers
180 views
When using Firefox, if I set the Font and/or Size, then type a line, the font/size is honored.  As soon as I hit enter the new line being created goes back to the inherited font and size.
Alex Gyoshev
Telerik team
 answered on 01 Aug 2013
1 answer
92 views
We are using Kendo v2013.2.716. I have a simple Treeview on a page, and I have it linked to an onDrop function. In the function, I am checking to make sure the drop is allowed. If it is not allowed, I use e.setValid(false) like you guys have described elsewhere to do. I have confirmed that the e.setValid(false) statement is actually hit. But after I do this, I run console.log(e.valid) , and it seems to still be showing e.valid as true, even though I set it to false. Is this me misunderstanding how it works? Do I need to track an additional isValid variable myself? Just would have figured e.valid would keep the updated validity status. Thanks.
Alex Gyoshev
Telerik team
 answered on 01 Aug 2013
1 answer
97 views
Hello all,

I am working with the very latest kendo release 2013.2.716 and MVC 4 with VS 2012.

 I have a kendo grid and it was decided to remove the buttons for displaying details and achieve this via row click. Easy enough right?

If I have an edit and delete button however, for each row in addition to the row click to show details, how do I exclude the edit and delete buttons from calling the row click instead of the edit or delete functionality? 

Any help is appreciated.
$("#grid tbody").on("click", "tr", showError);
showError.call($("grid tbody tr:first"));
 
   function showError() {
 
          if (documentReady) {
               
              var $this = $(this),
              dataItem = $this.data();
              var id = GetId(dataItem);
              if (id != 0) {                 
                  window.location.href = "/Error/ShowError/" + id;
              }
          }          
   }
   function GetId(item) {
       var items = grid.dataSource.data();
       for (var i = 0; i < items.length; i++) {
           var e = items[i];
           if (e.uid == item.uid) {
               return e.ExceptionLogId;
           }           
       }
       return 0;
   }


Paul

Paul
Top achievements
Rank 1
 answered on 01 Aug 2013
1 answer
108 views
In Kendo StockChart(http://demos.kendoui.com/dataviz/financial/index.html), have observed that dragging the navigator in bottom chart doesn't work always as expected. When I want to narrow down the navigator range,by pulling in either right handle/left handle, instead of narrowing down it moves the navigator range.

Looking at mousemove event handler in this case,shows that it decides whether to drag/narrow down the range,based on target element.
So, in some cases though i start dragging the mouse with pointer on left handle, but mousemove event listener gets the target as selection between leftHandle and rightHandle.

Looks in this case, the cursor width (cursor type e-reisze) is more than handle width and that's causing the issue.

Is there any other better way to handle this scenario that works always?

Also, have seen in some toolkits (nvd3), SVG is used for right/left handle that works very smooth instead of HTML controls. Is there any reason for not using SVG for right/left handle in KendoUI?
T. Tsonev
Telerik team
 answered on 01 Aug 2013
3 answers
195 views
Hi

I'm trying to reproduce the custom editing sample with dropdownlist inside the gridcell.
For some reason, the combo is not created...

I'm attaching the project to this message.

Do I miss any script for the project?

Thank you in advance,
Shabtai
Vladimir Iliev
Telerik team
 answered on 01 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?