Telerik Forums
Kendo UI for Angular Forum
1 answer
172 views

Hello everyone!

I am using in a project the kendo-chart donut component and I would like to rise the same click event programmatically in a legend as a filter. Is it possible to do in a .TS file? 

In the image is possible to see the donut with legend that I use like a filter. I have the same legends description in a combobox and when my costumers change the combobox, it should change the donut here.  

Hetali
Telerik team
 answered on 03 Jun 2021
1 answer
610 views

Hello Kendo UI Team,

The dataStateChange and the filterChange events are not emitting anything on changing the filter value when -
- I'm using it on a mobile device (tested on android 10 and 11)
- the column's filter type is "text"

Here is the column's definition:

{
    field: `name`,
    title: `Name`,
    filter: {
      type: `text`
    }
}

The example provided on kendo's official page, which has text type column in the grid, is not working on the mobile device also if I change the filter value. Here is the grid I've checked on android 10 and 11. Official Page's Grid Demo

But it works fine if the filter type is numeric/date/dropdown/et cetera. It also works fine on changing sort or paging.

I have searched for any workaround for this but unfortunately could not find anything. It would be helpful if you can suggest any workaround. Please also If there is no workaround available

Yanmario
Telerik team
 answered on 02 Jun 2021
1 answer
811 views

Hi,

I have this grid markup with auto generated columns by ngFor. Also I have checkbox column. But I need to make checkbox by default sticky (locked) and this will throw error.

Thank you for your time.

GridComponent.html:5 ERROR Error: There should be at least one non-locked column
    at GridComponent.verifySettings (index.js:7712)
    at GridComponent.ngAfterContentChecked (index.js:6992)
    at callProviderLifecycles (core.js:24917)
    at callElementProvidersLifecycles (core.js:24886)
    at callLifecycleHooksChildrenFirst (core.js:24868)
    at checkAndUpdateView (core.js:35072)
    at callViewAction (core.js:35433)
    at execComponentViewsAction (core.js:35361)
    at checkAndUpdateView (core.js:35074)
    at callViewAction (core.js:35433)

<!-- Checkbox -->
<kendo-grid-checkbox-column
	[width]="checkboxColumnSize"
	[style]="{ 'text-align': 'center' }"
        Error -> [locked]="true" or [sticky]="true
>
	<ng-template kendoGridHeaderTemplate>
		<!-- Columns Menu -->
		<ca-toggle-popup
			class="grid-columns-menu"
			#showColumnsMenu
			(toggle)="onShowColumnsMenu($event)"
		>
			<button
				button
				kendoButton
				class="columns-menu-button"
				iconClass="fal fa-cog"
				look="clear"
				kendoTooltip
				position="right"
				title="Settings"
			></button>
			<div popup>
				<div class="columns-menu-header">
					<span>Grid Columns</span>
				</div>
				<ca-switch-lists
					#switchColumns
					[keyField]="'field'"
					[textField]="'title'"
					[maxSelected]="maxSwitchColumns"
					[availableData]="availableColumns"
					[selectedData]="selectedColumns"
					class="columns-menu-switchlist"
				></ca-switch-lists>
				<div class="columns-menu-actions">
					<button
						kendoButton
						(click)="onCancelColumnsMenu(showColumnsMenu)"
					>
						Cancel
					</button>
					<button
						kendoButton
						[primary]="true"
						(click)="
							onApplyColumnsMenu(
								showColumnsMenu,
								switchColumns.selectedData
							)
						"
						[disabled]="!switchColumns.selectedData?.length"
					>
						Apply ({{ switchColumns.selectedData?.length || 0 }}/{{
							maxSwitchColumns
						}})
					</button>
				</div>
			</div>
		</ca-toggle-popup>
	</ng-template>
</kendo-grid-checkbox-column>
<!-- Columns -->
<kendo-grid-column
	*ngFor="let column of columns; let i = index"
	[field]="column.field"
	[title]="column.title"
	[width]="getColumnWidth | apply: i:column.field:defaultColumnSize"
	[filter]="filterColumn | apply: column.type"
	[locked]="lockColumn | apply: column.field"
	[style]="{
		'min-width': minColumnSize + 'px',
		'max-width': maxColumnSize + 'px'
	}"
>
	<!-- Column Header -->
	<ng-template kendoGridHeaderTemplate let-column>
		<!-- Cell Value -->
		<span class="k-flex">{{ column.title }}</span>
		<!-- Cell Menu -->
		<kendo-grid-column-menu
			*ngIf="!hasMore"
			[column]="column"
			[sort]="state.sort"
			[filter]="state.filter"
			[settings]="{
				sort: true,
				filter: true,
				lock: true,
				columnChooser: false
			}"
		>
		</kendo-grid-column-menu>
	</ng-template>
	<!-- Cell Item -->
	<ng-template kendoGridCellTemplate let-dataItem>
		<span class="grid-cell">{{
			editCell | apply: column:dataItem[column.field]
		}}</span>
	</ng-template>
</kendo-grid-column>

Yanmario
Telerik team
 answered on 02 Jun 2021
2 answers
662 views

Hi,

I have problems in using the Grid inside an Angular project with strict mode on.

<kendo-grid
      [data]="view | async"
      [loading]="view.loading"
      [pageSize]="state.take"
      [skip]="state.skip"
      [sort]="state.sort"

It complains that pageSize, skip and sort can't accept undefined values while the underlying State object can.

Thanks!

Svet
Telerik team
 answered on 02 Jun 2021
1 answer
817 views

Hello, 

when using customized filter menus (as explained in the following) is there any way to customize the appearance of the popup that is displayed especially the buttons that are placed inside the popup as seen in the screenshot below? (In this case `Clear` and `Filter`)

I know that the text can be customized by using the CustomMessagesComponent. But what if I want to place my own buttons or remove them? I have found the following answer from 2019 that there is only the functionality to style them but only inside the styles property from the component that uses the kendo grid component. 

Version Information

"@progress/kendo-theme-default": "^4.38.1",

"@progress/kendo-angular-grid": "^5.0.2",

Thanks in advance for any help or information. 

 

Yanmario
Telerik team
 answered on 01 Jun 2021
1 answer
212 views

Hi,

When the user select a date I have to add a list of date preset near the calendar, how can i do it?

Svet
Telerik team
 answered on 01 Jun 2021
2 answers
624 views

I have a sidebar menu with a panelbar and i use the routerlink to navigate to components.

When i click a panelbar item the background changed - class k-state-selected was added. Can i prevent that?

Michael
Top achievements
Rank 1
Veteran
Iron
 answered on 31 May 2021
1 answer
1.7K+ views
hey team

 

I am facing another issue, that when a user clicks on a node in kendo treeview, onnodeclick event gets triggered. In its event handler, how can we get the parent nodes of that node?

 




 

Yanmario
Telerik team
 answered on 28 May 2021
1 answer
1.4K+ views
I have a Kendo datepicker inside kendo grid and the grid has in-cell editing applied. When I click on the datepicker the popup window opens up but it doesn't let me select any year or month because every time I click on any month or year(e.g. Jan/Feb/2019) to select a date the datepicker and the editor closes automatically so basically each time I click anywhere inside kendo datepicker popup, the editor closes itself and the date remains the same. 
Yanmario
Telerik team
 answered on 28 May 2021
1 answer
403 views

This is how the Kendo DateTimePicker is being implemented

<input 
   ng-disabled="isDisabled"
   k-ng-model="viewmodel"
   k-format="'dd/MMM/yyyy HH:mm'"
   k-timeFormat="'HH:mm'">

However my dropdown Time options appear as; 5:30AM, 8:30PM, etc.    (12hour format)

When a date & time are selected, they appear as 24/May/2021 05:30, 24/May/2021 20:30       (24hour format)

How can I change the dropdown options to 24hour format?

Georgi Denchev
Telerik team
 answered on 27 May 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?