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

Columns menu - undefined coulmn

1 Answer 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mentor Graphics
Top achievements
Rank 1
Mentor Graphics asked on 11 Nov 2013, 03:57 PM
Hello,

I'm using the javascript implementation for kendo ui grid - kendo version: 2013.1.319.

I added a column menu to my grid that contains 6 column .

My columns definition is this: 

 columns: [
                     {field: 'WorkOrder().Name()', title: 'Work Order'}, 
                     {field: 'Product().Name()', title: 'Product Name'}, 
                     {field: 'Customer().Name()', title: 'Customer'},
                     {field: 'Operations', title: 'Operation'  }, 
                     {field: 'WorkOrder().PercentProduced()',  title: 'Percent Produced' }, 
                     {field: 'WorkOrder().DueDate()',type: 'date', title: 'Due Date' },
                     ],

for some reason while opening   the menu  there are  7 columns displayed when the last one's title is undefined (see the attached image).

while trying to figure out where the extra  column came from, I checked my columns attribute in the grid object using this function:

    var grid = $("#grid").data("kendoGrid");
     alert(grid.columns.length); 

the result was only 6 .

Where to look for the expendable column and how to delete it? 

Thanks

Eran




 

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 12 Nov 2013, 07:48 AM
Hello Eran,

This is indeed a odd behavior. Can you isolate this in a sample jsbin/jsfiddle? Is it reproducible with more recent version of Kendo UI scripts?

Regards,
Nikolay Rusev
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
Mentor Graphics
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or