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

Getting an Error while sorting Grid

3 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Harjit
Top achievements
Rank 1
Harjit asked on 19 Aug 2013, 01:29 PM
When I sort the grid, I see this error





extend.getterkendo.web.js:2326
Comparer.selectorkendo.web.js:6528
Comparer.comparekendo.web.js:6532
Comparer.createkendo.web.js:6558
Query.sortkendo.web.js:6965
Query.processkendo.web.js:7194
Observable.extend.querykendo.web.js:8456
Observable.extend._querykendo.web.js:8501
Observable.extend.sortkendo.web.js:8581
Widget.extend._click


This error doesn't happen on all the columns. Its only on some columns. 

3 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 21 Aug 2013, 07:48 AM
Hi Harjit,

I tried to reproduce the problem locally but to no avail – everything is working as expected on our side. Could you please provide runnable project where the issue is reproduced? This would help us pinpoint the exact reason for this behavior.
 

Kind Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Harjit
Top achievements
Rank 1
answered on 21 Aug 2013, 04:14 PM
I was able to figure out the reason and fixed it. For some reasons Kendo UI doesn't like header names which just have numeric data and or have spaces between words. That was the actual failure. I think having multiple words which contain spaces in them should be allowed in field.field
0
Alexander Popov
Telerik team
answered on 23 Aug 2013, 12:28 PM
Hi Harjit,

I am afraid having a column.field name consisting of numbers only or including spaces is not possible, however you can specify the column's title using the columns.title property. Here is an example:   
$("#grid").kendoGrid({
   dataSource: dataSource,
   columns: [
       { field: "name", title: "Customer's full name" }
  ]
});

 

Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Harjit
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Harjit
Top achievements
Rank 1
Share this question
or