I make this dynamic grid
https://www.telerik.com/kendo-angular-ui/components/grid/columns/auto-generated/
this error appear :
Type 'string' is not assignable to type '"boolean" | "text" | "numeric" | "date"'.
<
kendo-grid
[kendoGridBinding]
=
"collaborateurData"
[filterable]
=
"true"
scrollable
=
"none"
[pageable]
=
true
[pageSize]
=
"10"
>
<
kendo-grid-column
*ngFor
=
"let column of columns"
field
=
"{{ column.field }}"
title
=
"{{ column.title }}"
format
=
"{{ column.format }}"
filter
=
"{{ column.type }}"
></
kendo-grid-column
>
</
kendo-grid
>
I also try this
but this error appear in my console :
Type '{ "": any; }' is not assignable to type 'CompositeFilterDescriptor'.
<
kendo-grid
[kendoGridBinding]
=
"collaborateurData"
[filterable]
=
"true"
scrollable
=
"none"
[pageable]
=
true
[pageSize]
=
"10"
>
<
kendo-grid-column
*ngFor
=
"let column of columns"
field
=
"{{ column.field }}"
title
=
"{{ column.title }}"
format
=
"{{ column.format }}"
>
<
ng-template
kendoGridFilterCellTemplate
let-filter
let-column
=
"column"
>
<!-- Modification du filtre par défault par son type -->
<
kendo-grid-string-filter-cell
*ngFor
=
"let column of columns"
[showOperators]
=
"false"
[column]
=
"column"
[filter]
=
"{{ column.type }}"
>
</
kendo-grid-string-filter-cell
>
</
ng-template
>
</
kendo-grid-column
>
</
kendo-grid
>
Hi Kylian,
Thank you for the snippets. The error is pertaining to the type of data used in one of the Kendo UI Grid's column attributes.
To further help you resolve the issue, could you please edit
this StackBlitz example
such that it replicates the error observed and share the data used? I will then investigate.
Looking forward to hearing from you.
Regards,
Hetali
Progress Telerik