Hello,
I want to integrate the Kendo UI Grid to my project (composition api + TypeScript).
In specific I need help to undertand al least one integration feature in the grid, the filtering
I readed this documentation: https://www.telerik.com/kendo-vue-ui/components/grid/filtering/
I make the corresponding settings on my code but the filtering doesn't work.
So, do you have an example or better documenattion to undertand the integration, but using Composition API + TypeScript
Thanks in advance
Hi
I'm struggeling to find a working solution for the following problem, I need to be able to define custom templates for specific columns in the Native Grid when the grid is grouped. Somehing like the solution when the grid is not grouped using the "cell" property of GridColumnProps. I'm currently changing all wrapper components to native ones in my project, in the wrapper grid component we could just add a template property to the column definition and then return a string or function.
I need some help on how I should approach this for the Native grid. I tried the solution as stated in the docs using a named slot and the cell render prop of the grid but this renders a template for every cell and I need to be able to use a custom template for each column that requires one. But I can't seem to solve this issue completely using this approach.
Any help is appreciated,
thanks in advance!
I'm trying to make a grid with custom rows by passing a custom vue row component to the :row-render prop like so:
Lsjacl (forked) - StackBlitz
However there's a problem when I'm inserting new rows at the top. It seems the row that's newly created re-uses the row data from the row below it instead of the completely blank data a new row starts out with. When I insert a row at the bottom of the list this problem doesn't occur and the values are all completely blank.
You can reproduce this issue with the following steps:
1: open the stackblitz.
2: click on 'add row to end'.
3: see that there's a newly created row at the bottom of the list.
4: in the field meta it says the initalValue is null
5: now add a row to the beginning of the list with the 'add row to beginning' button
6: The field meta says it's initialValue is 'Lemon' the same value as the row below it.
I'm figuring this has something to do with the loop that's generating all rows using generic indexes instead of unique ID's as described in this video:
https://youtu.be/-6fO2qUmf7I?t=412
Is there a way to fix this so I can insert the row at the beginning of the list and have it start out as a completely fresh vue component?
I want to use the rowRender grid prop with a custom vue component to add additional logic per each row
In this example it's done with a Vue render function:
Vue Grid Component & Styling | Kendo UI for Vue Docs & Demos (telerik.com)
However for my use case I'm trying to use vee-validate's useForm() composable on each row for validation. This composable has to be ran inside a script setup thus requiring me to use a custom vue component for rowRender.
So is it possible to use rowRender with a custom component and still retain the automatic cell rendering like in the render function example?
So something like this (but working of course):
CustomRow.vue:
<template>
<tr>
<slot><!-- render cells here automatically--></slot>
</tr>
</template>
I've tried to make it work by modifying this official example, here's my code.
Unfortunately when I try to select a single row it throws the following error (both in stackblitz as well as local dev environment)
Error in /turbo_modules/@progress/kendo-vue-grid@3.2.9/dist/npm/utils/index.js (401:23) Cannot read properties of undefined (reading 'items')
Is there a way to make grouped rows + checkboxes work in Kendo Native Grid?
Thanks in advance
Hi. The documentation (https://www.telerik.com/kendo-vue-ui/components/grid/custom-rendering/custom-headers/) shows how to make custom headers, but there is no example of a custom header with functional sorted colums (like the first grid on this page -> https://www.telerik.com/kendo-vue-ui/components/grid/sorting/ ).
I want to have a custom header template and I also want to click on it to sort the column. I actually managed to do that, but the arrows are missing. Here's a code sample:
<template #headerTemplate="{props}">
<span @click="headerTemplateClickHandler(props)">{{ props.title }}</span>
</template>
headerTemplateClickHandler(props){
const existentRuleIndex = this.sort.findIndex(rule => rule.field === props.field);
if (existentRuleIndex >= 0) {
this.sort[existentRuleIndex ].dir =
this.sort[existentRuleIndex ].dir === "desc" ? "asc" : "desc";
} else{
this.sort.push({
dir: 'desc',
field: props.field
})
}
props.sortchange({
sort: this.sort
});
}
With this code I managed to sort the column, but the arrow indicators do not show up in the header.