Grid cant use the selector, because my fields are only numbers

So this is kind of a format problem:

My columns are all named 1,2,3,4,5,6,7, (since they are literally arrays sent via Rest API - They get different headers afterwards).

When i try to use the Excel FilterType on my grid, this error appears:




The error is clear: The id which is probably generated for a part of the grid starts with the number - which is due to selectors way of handling not valid.

Is the following possible:

- Setting a custom name for the id generation, to prevent this error from happening.
- A fix / patch for this to allow digits in column names

Otherwise id have to recode my API...

Thanks in advance

1 Reply 1 reply marked as answer

MS Manivel Sellamuthu Syncfusion Team April 9, 2021 05:33 AM UTC

Hi Sebastian, 

Greetings from Syncfusion support. 

By default the grid field name must be a valid JavaScript identifier, the first character must be an alphabet and should not contain spaces and special characters. This is the default behavior of the Grid. We have already mentioned that in the below API link.  So we suggest you to provide the valid field names to resolve the issue. 


Please let us know if you need further assistance. 

Regards, 
Manivel 


Marked as answer
Loader.
Up arrow icon