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.
Hi,
I am trying to create a nav menu using the kendo Menu Component. My requirement is to make this nav menu similar to the dashkit nav menu. There are two major problems that I am currently facing
Problem with Making Responsive: In the web version, if we hover on a nav item that has children in the nav menu, it opens a submenu on the right side of that nav item. In the Mobile version, if we click on a nav item that has children, it opens a submenu on the right side same as the web version, but the submenu is outside of the viewable frame.
Showing Active navs: I looked for this in the forum, but unfortunately, I didn't find any proper solution for making the kendo menu nav items active.
DashKit Theme Reference: https://dashkit.goodthemes.co/index.html
Customize Setting:
Sample Vue Project: https://github.com/iamAdarshh/Kendo-Menu-Responsive
Is there a way to disable just the checkbox in the dropdowntree? I need to be able to select and drill down in each node, but also need some checkboxes to be disabled. So a node could be disabled, but I would still like to drill down and select items inside that node that are enabled.
"myDataSource" has a "isEnabled" property that is set to true or false.
How can I disable just the checkbox in the control below
<dropdowntree
:data-source="myDataSource"
tagMode="single"
:autoClose=false
:checkboxes-check-children="true"
:check-all="true"
dataTextField="text"
dataValueField="id"
style="width: 100%;"
height="auto"
>
</dropdowntree>
I use a scheduler with grouping where it is bound to the data object 'resourceDataSource1' as below
<kendo-scheduler-resource :field="'groupLead'" :name="'Lead'" title="'Lead'" :data-source="resourceDataSource1"></kendo-scheduler-resource>
All works fine if the data is set at the time the page loads (ie. if it is set directly in the data property), but but my case the tasks and resource info is retrieved by separate api call and hence is only set after the page loads.
So what I want to know is how can I get the scheduler to re-read the value from resourceDataSource1 once I have populated it?
I have a native DatePicker that I am using in an application with many components that use the Kendo wrapper validation widget. I am trying to get the behavior and appearance of the DatePicker to match that of the existing components. Validation should occur when a field loses focus and an invalid field should have a red outline and red error message below it. I tried to use the native DatePicker validation functionality, but I was unable to make validation consistent with all of the other components.
I am able to use the Kendo wrapper validation widget to perform validation when a field loses focus and display an error message, but I have been unable to get a red outline on an DatePicker in the invalid state. How can I accomplish this?
See https://stackblitz.com/edit/esiptm for an example.