Telerik Forums
Kendo UI for jQuery Forum
1 answer
998 views

On grid right click context menu's open event, how does one get the grid row's data item:

function grid_menu_open(e) {

}

Edward
Top achievements
Rank 1
 answered on 19 Jun 2019
3 answers
169 views

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.

  1. Question 1: Considering such a setup where a master property is rendered in a child template, how can child re-render when master property changes?
  2. Question 2: Is there a better way to convert server-provided data into custom Model objects than what is being done in the example?

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

Angel Petrov
Telerik team
 answered on 19 Jun 2019
2 answers
128 views

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!

Svet
Telerik team
 answered on 18 Jun 2019
7 answers
921 views

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

Ivan Danchev
Telerik team
 answered on 18 Jun 2019
4 answers
312 views

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');

 

Petar
Telerik team
 answered on 18 Jun 2019
3 answers
432 views
Hi, 

all attempts seem to indicate that it is not possible to show a loading animation in a window while iframe content is being loaded with a refresh call.

The time from when the window opens until the time the iframe content is loading the window appears blank. Setting the content of the window or the html of the window element does not work as at the time refresh is called that content is immediately wiped from the window with the iframe. So we have a scenario where the window content is blank while the content inside the iframe is being loaded. 

Am i missing something? Is there some way to not change the content of the window UNTIL the iframe content is loaded? Using refresh does not work as the iframe is displayed immediately rather than once the content inside the iframe has loaded.

Thanks!
Dimo
Telerik team
 answered on 17 Jun 2019
2 answers
107 views
I would like to change the "Export PDF" position to stand next to the "Today" button, as shown in the attached image. This would make the blue bar smaller.

It is possible?
ziental
Top achievements
Rank 1
 answered on 17 Jun 2019
28 answers
3.0K+ views
Hi,

1) Can we have a different template for Create a record and Edit a record in Grid ? If it can achieved ; Can you point me to some example.

2) Based on Record in a grid can we have different template of popup's on Edit of each record? if it can be achieved; Can you point me to some example.


Thanks,
Chatrapathi Chennam
Tsvetomir
Telerik team
 answered on 17 Jun 2019
2 answers
513 views

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:

  1. Multiple tasks/milestones in a row.
  2. Multiple rows for a parent task.
  3. If space is not available in preceding row(s), overlapping tasks should be moved to next row.
  4. User should be able to provide start date for the quarter in a fiscal calendar.

    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)

  5. 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).

  6. Different color for each task.

Ivan Danchev
Telerik team
 answered on 17 Jun 2019
3 answers
554 views

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?

 

 

Petar
Telerik team
 answered on 17 Jun 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?