On grid right click context menu's open event, how does one get the grid row's data item:
function grid_menu_open(e) {
}
I tried finding something similar in this forum but maybe I'm not using the right terms, so here it is:
I have a custom model (created using kendo.define), lets call it "Master". It has a property "Children" which is an ObservableArray of another custom model. A property (say, "Type") defined in Master is rendered in children template. If this property changes, the child template doesn't re-render.
I have read that data sources should not be nested so deeply, is that the problem? What would be a more appropriate approach for MVVM with a nested model?
Example Dojo: https://dojo.telerik.com/isiNeJaF
Hello Telerik team,
I have already checked older threads considering similar problems, but I still can't get it to work.
ngAfterViewInit(): void {
this.scrollDiv = document.getElementsByClassName('k-virtual-content')[0];
this.scrollDiv.addEventListener('scroll', this.onScroll);
}
public onScroll($event: any) {
this.scrollTop = $event.target.scrollTop;
}
The problem arises when I scroll to some position, then change gridData so that I end up with another set of data entries with a different scrollTop position (e.g. empty with scrollTop 0) and when I come back to the initial data (change gridData again), then I end up having the initial skip value but scrollTop of 0 instead of my old value.
So how can I utilize the scrollTop value? So far I have tried
this.scrollDiv.scrollTop = this.scrollTop;
but I don't think this one can also act as a setter. Can I open a Feature Request for a grid method that does this?
Cheers and thanks in advance!
Hi,
I've created a custom tool for my Kendo Editor control. It's a paragraph background color (as opposed to the back color control that only put the background around a span). I've got this more or less done however I've came across a limitation on the HSV color picker. If I pick a color such as red and hit apply this fires the change event which I can then use to set a paragraph I'm currently highlighting to however if I want to make another paragraph the same color by clicking on the colorPicker and clicking apply the change event doesn't fire. It seems I need to change the color every time in order for this event to be fired.
So I was wondering if there was anyway to catch the apply event when the color hasn't changed?
Cheers,
Tyler
In a simple example like this - https://dojo.telerik.com/UViBAZAP How to mark the field dirty? I want to make changes first and then save at one go.
Also, If I set the field value, the field should be marked dirty, for the user to know it was changed. Is there any way to achieve this?
var data = $('#gantt').data().kendoGantt.dataSource.data()[0];
data.set(start, new Date('06/13/2019');
Hi,
I am using kendo's Gantt chart. But I unable to achieve few things using the existing Gantt chart features.
Following are the features I request should be provided for Gantt chart:
Ex: If user give 01st-June as the start date, then Q1 should start from 01st-June. Hence, quarters will be defined as: Q1(June-Aug), Q2(Sept-Nov), Q3(Dec-Feb), Q4(Mar-May)
If task label is exceeding the width of the task, then height of the task should be increased to accommodate task label(in other words, text should be wrapped).
Different color for each task.
I'm working on a page that will load the entire data of the entire week (the 7 days).
And when the user changes the week I'll load the data only for that week.
But if the user clicks the link of the day (highlighted in red in the attached image), the "read" method is executed again.
I would like to show the date, but disable the link.
I did this with jquery, but when the user changes week, this is lost.
Is there a way to do this?