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

column menu fails on second try if columns has a ' field: "" '

2 Answers 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Morten asked on 07 Dec 2017, 11:37 AM

Dear support

if there is a field: "" in the columns options the column menu will fail (not close or re-show) once shown on any of the other columns.

Please see this http://dojo.telerik.com/oJeqet

/Morten

2 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 11 Dec 2017, 07:22 AM
Hello, Morten,

Thank you for the provided example.

The issue occurs because setting the empty string to the field property is not meeting the field requirements:

https://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-columns.field

"The field name should be a valid Javascript identifier and should contain no spaces, no special characters, and the first character should be a letter."

If the column does not have a field bound to it, the field property could be omitted.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 11 Dec 2017, 09:25 AM

Thanks Stefan,

I see, however, maybe a simple isnullorempty check could be squeezed in :-)

Best regards

Morten

Tags
Grid
Asked by
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Stefan
Telerik team
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Share this question
or