Telerik Forums
Kendo UI for Angular Forum
1 answer
477 views

Hello, I am using Angular 14 and Kendo popover to show popup (tooltip) when hovering on the column headers of my Kendo grid.

The problem I am experiencing is that I cannot find a way to add a 1s delay to the animation.

Here is part of the code:


<kendo-popover #template [animation]="popoverAnimation" position="bottom">
	<ng-template let-anchor kendoPopoverBodyTemplate>
		<es-table-reactive-help-popover
			[helpKey]="helpKeyMap.get(anchor.innerText)"
		></es-table-reactive-help-popover>
	</ng-template>
</kendo-popover>

<div
	class="wrapper"
	[popover]="template"
	(mouseover)="toggleTooltip($event)"
	(mouseleave)="hideTooltip()"
	kendoPopoverContainer
	showOn="hover"
>
	<kendo-grid>
		<kendo-grid-checkbox-column [width]="70" title="....">
		....
		</kendo-grid-checkbox-column>
		<kendo-grid-column [width]="200" field="name" title="....">
		</kendo-grid-column>
		<kendo-grid-column [width]="200" field="code" title="....">
		</kendo-grid-column
		><kendo-grid-column
			[width]="200"
			field="warehouseName"
			title="Customer warehouse"
		>
		</kendo-grid-column>
		<kendo-grid-column
			[sortable]="false"
			[width]="200"
			field="supplierEvents"
			title="...."
		>
			<ng-template kendoGridCellTemplate let-entry>
				<es-schedule-pills
					[eventSummary]="entry.eventSummary"
					[supplierName]="entry.name"
					[warehouseName]="entry.warehouseName"
					[supplierId]="entry.id"
				></es-schedule-pills>
			</ng-template>
		</kendo-grid-column>
	</kendo-grid>
</div>

 

  1. The kendo-popover component has an input for animation, which uses the interface PopupAnimation, but it does not support animation delay.
  2. I have tried adding a raw CSS animation through tag/class selectors but the popup shows and then the animation runs which seems buggy.
  3. I cannot attach an animation through the component template since the popup element is generated under the hood and I don't have direct access to it in the template.

Can you provide me some other solution?

 

Yanmario
Telerik team
 answered on 11 Oct 2022
2 answers
760 views

I'm trying to remove the title bar component completely from a window created with a call to WindowService.

Here's my custom open method:

openWindow(settings: WindowSettings, closeCallback: any, preventClose: boolean = false, inputData: any = null): WindowRef {


    if (preventClose) {
      settings.preventClose = (e: any, w: WindowRef) => {
        return true;
      }
    }

    
    let w = this.windowService.open(settings);
    let contentInstance = w.content.instance as any;

    if (inputData) {
      for (const key in inputData) {
        const value = inputData[key];
        contentInstance[key] = value;
      }
    }

    w.window.instance.resizeStart.subscribe(() => {
      //delete w.window.instance.titleBarView
      if (w.window.instance.titleBarView)
        w.window.instance.titleBarView.el.nativeElement.remove();
    });

    return w;
    
  }

As you can see, I've found that w.window.instance.titleBarView.el.nativeElement contains the title bar and I can remove it as such, but the problem is that if I try to access the titleBarView property right before the subscribe line, it's always undefined. The title bar disappears when I resize the window, but that's not what I want.

Is there a way I can subscribe to an event (like beforeShow) and have access to it ?

Or any other way to do it would be appreciated.

Thanks.

Francis
Top achievements
Rank 1
Iron
 answered on 07 Oct 2022
0 answers
1.9K+ views

Hello,

I have a problem with Kendo icons (k-icon k-i-menu etc.) which are now not showing after the latest update of Kendo and Angular to Angular 14.

This is what is showing (just rectangles) and it was working fine until now. I have not changed anything in the app related to fonts or icons so I don't really know where to search for the problem. I've tried rollback of the Kendo theme to the last version I had before the issue, but it didn't work. I have the issue in 3 different browsers.

 

This is the code i have in my angular.json loading kendo-theme-material v5.8.1

"styles": [{
                                "input": "node_modules/@progress/kendo-theme-material/dist/all.css",
                                "inject": true
                            },
                            "./node_modules/@angular/material/prebuilt-themes/deeppurple-amber.css",
                            "./node_modules/bootstrap/dist/css/bootstrap.css",
                            "./node_modules/ngx-toastr/toastr.css"
                        ],

and the icons in my html are with class k-icon in combination with k-i-menu or other icons, which up until now have worked perfectly fine.

Can you help me solve the problem or at least give me some guidelines to what might be causing it?

Thanks

Petar
Top achievements
Rank 1
 asked on 07 Oct 2022
1 answer
916 views

In our application, we recently updated to Angular 14, and our kendo-dropdown import is currently on version 7.2.0. 
With our multiselect dropdowns, we found a weird interaction - when we include [popupSettings]="{appendTo: 'component'}", the dropdown's popup activates when clicking the searchbar but clicking on it automatically closes the popup without an activation or change of state. When we force the popup to stay open by using preventDefault when OnClose is called, the functionality is present and works as expected (though it can never close).
When appendTo is set to its default/"root", the multiselect dropdown does work as intended. However, we are experiencing a bug akin to https://www.telerik.com/forums/overwrite-default-value-for-appendto-setting-of-a-popup where scrolling on a page before opening a dialog with a multiselect dropdown will result in the popup being misaligned. We are using Angular Material's MatDialog.

 

 

Yanmario
Telerik team
 answered on 07 Oct 2022
0 answers
3.7K+ views

Hi!

I searched the forum but found no answer. I have several controls in the form, each one inserted according to the scheme:

      <div fxFlex="30">
        <kendo-formfield [orientation]="'horizontal'">
          <kendo-label text="Rodzaj przewozów">
            <kendo-dropdownlist #transportTypeDropdown class="transport-type" [data]="transportTypes"
              [textField]="'name'" [valueField]="'id'" [formControlName]="formNames.transportType"
              [(value)]="formModel.transportType" [disabled]="areControlsDisabled">
            </kendo-dropdownlist>
          </kendo-label>
          <app-form-error [controlName]="formNames.transportType" [form]="form"></app-form-error>
        </kendo-formfield>
      </div>
      <div fxFlex="10">
        <kendo-formfield [orientation]="'horizontal'">
          <kendo-label text="wyszukaj bez trasy">
            <input type="checkbox" #searchWithoutRouteCheckbox class="search-without-route-type"
              [formControlName]="formNames.searchWithoutRoute" [value]="formModel.searchWithoutRoute" kendoCheckBox
              [disabled]="areControlsDisabled" />
          </kendo-label>
          <app-form-error [controlName]="formNames.searchWithoutRoute" [form]="form"></app-form-error>
        </kendo-formfield>
      </div>
      <div fxFlex="10">
        <kendo-formfield [orientation]="'horizontal'">
          <kendo-label text="Przes. kal. 2">
            <kendo-dropdownlist #calendarShiftDropdown class="calendar-shift" [data]="calendarShiftItems"
              [textField]="'text'" [valueField]="'value'" [formControlName]="formNames.calendarShift"
              [valuePrimitive]="true" [(value)]="formModel.calendarShift" [disabled]="areControlsDisabled">
            </kendo-dropdownlist>
          </kendo-label>
          <app-form-error [controlName]="formNames.calendarShift" [form]="form"></app-form-error>
        </kendo-formfield>
      </div>

 

and I get errors in the console:

The `kendo-formfield` component should contain only one control of type NgControl with a formControlName

AFAIS there's no doubled controls in formfield. In other form I have simmilar controls and getting no errors and I'm stuck on this issue. What I'm doing wrong?


Robert
Top achievements
Rank 2
 updated question on 07 Oct 2022
0 answers
123 views
I have tried to implemented kendotreeview on json data.But I am unable to use filter using "filterable" property. Here is what so far I have done. Please help me with searching
https://stackblitz.com/edit/angular-hbjccw-xkwehf?file=app%2Fapp.component.ts
Meet
Top achievements
Rank 1
 updated question on 07 Oct 2022
1 answer
550 views

Hi everyone

I have browsed the forums, but can't seem to find a recent article. As the title says, we would like to add a "No data" template to our existing Kendo charts.

Is there a directive/template we can use in the API that will do this for us? The alternative is to create a custom overlay, but thought that Kendo would have something like this built in?

Thanks.

Yanmario
Telerik team
 answered on 05 Oct 2022
1 answer
195 views

Trying to get this example to run but I can't get past these compile errors:  Any guidance?

https://www.telerik.com/kendo-angular-ui/components/grid/master-detail/

Element implicitly has an 'any' type because expression of type '"value"' can't be used to index type 'Object'.Element implicitly has an 'any' type because expression of type '"@odata.count"' can't be used to index type 'Object'.

Martin Bechev
Telerik team
 answered on 03 Oct 2022
2 answers
131 views

Hi there,

I'm curious as to what would be the best approach in having a function execute once the animation is done. I could do a setTimeout and invoke the function from there but I'm looking for a more elegant solution if there is one.

I was hoping that the PopupAnimation interface and it's underlying class can provide a callback hook for executing code after the animation has finished.

Thank you and looking forward to your response.

 

Cheers!

Jaime

Martin Bechev
Telerik team
 answered on 30 Sep 2022
1 answer
516 views

Hi, we are looking for the input, dropdowns which has this outline design in the material theme but we are not able to find it. 

 

It'd have been better if we have this.

 

something like this https://codepen.io/finnhvman/pen/xyOORQ

 

Thanks.

Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?