Looking at this post from another one of your boards.
https://www.telerik.com/forums/extend-kendo-mvc-ui-datasourceresult-with-new-property
I'm doing the exact same thing with Angular. I managed the web service changes so the data is returned to Angular but I've not been successful at extracting the extra data and to keep functionality like sort/filter working.
I have the chart code below that I would like to format so that the series names appear on the category axis as shown in the CaptureBugGood image, my chart currently appears as in CaptureBugBad image.
Is there a way to have two levels of category axis labels such as category and then series, if not how can I put just the series names on the category axis while maintaining the series colors etc.
<
kendo-chart
*
ngIf
=
"!(graphType=='Doughnut')"
>
<
kendo-chart-value-axis
>
<
kendo-chart-value-axis-item
*
ngFor
=
"let item of valueAxes"
[name]="item.name" [title]="{ text: item.title }"
[max]="item.max">
<
kendo-chart-value-axis-item-labels
[format]="item.format">
</
kendo-chart-value-axis-item-labels
>
</
kendo-chart-value-axis-item
>
</
kendo-chart-value-axis
>
<
kendo-chart-category-axis
>
<
kendo-chart-category-axis-item
[title]="xAxis_Label" [categories]="categories" [axisCrossingValue]="crossingValues">
</
kendo-chart-category-axis-item
>
</
kendo-chart-category-axis
>
<
kendo-chart-axis-defaults
>
<
kendo-chart-axis-defaults-labels
>
<!-- format="n0"-->
</
kendo-chart-axis-defaults-labels
>
</
kendo-chart-axis-defaults
>
<
kendo-chart-legend
[visible]="false"></
kendo-chart-legend
>
<
kendo-chart-series
>
<
kendo-chart-series-item
*
ngFor
=
"let series of model"
[name]="series.name"
[data]="series.data"
[categoryField]="series.category"
field
=
"value"
[stack]="series.stack"
[color]="series.color"
[type]="series.type"
[axis]="series.axis">
<
kendo-chart-series-item-tooltip
>
<
ng-template
let-value
=
"value"
let-category
=
"category"
>
<
span
[innerHTML]="series.dataLabel.replace('[value_1]', value.toLocaleString() ).replace('[year]', category ).replace('[series]', series.name ).replace('[#%]', ((value)*100).toFixed(1).toString() + '%') "></
span
>
</
ng-template
>
</
kendo-chart-series-item-tooltip
>
</
kendo-chart-series-item
>
</
kendo-chart-series
>
</
kendo-chart
>
I am having trouble with the Grid Column Menu Filter and Columns button not popping the menu in all versions of IE. I have seen bug reports for jquery version but I am using straight angular 7 (no jquery). Wondering if I am missing something or maybe I need to update my progress versions?
Thanks,
Paul
Quick question for OnPush strategy, any recommendations on how I can hook clicks on the hierarchy cells? Everything else seems to work pretty well but I noticed the hierarchy cells aren't traditional buttons.
Thank you!
I have a file uploader:
<kendo-upload
#templateUploader
id=
"document"
[multiple]=
"false"
[saveUrl]=
"uploadSaveUrl"
[removeUrl]=
"uploadRemoveUrl"
[autoUpload]=
"false"
[disabled]=
"!templateTypeSelected"
[restrictions]=
"fileRestrictions"
(remove)=
"removeEventHandler($event)"
(success)=
"successEventHandler($event)"
(upload)=
"uploadEventHandler($event)"
>
</kendo-upload>
And I need to dynamically change fileRestrictions.allowedExtensions when I select a different document type from a drop down list:
templateTypeSelectionChange(documentType: NcDocumentTypeDto) {
this
.templateTypeSelected =
true
;
this
.selectedNcDocumentCategory.documentTemplate.ncDocumentTypeId = documentType.id;
this
.fileRestrictions.allowedExtensions = documentType.extensions.split(
','
);
}
The string array is set correctly but the component is not updated with new file restrictions. What is the problem?
Hello,
I would like to open kendo UI window to in new window that persist design of component .
Reference Demo of w3school https://www.w3schools.com/code/tryit.asp?filename=G5WILX67XOQF
How can I achieve this functionality using kendo window ?
Demo appreciate.
Thanks
I have validators below to validate some columns in my grid.
I then have a save button that loops through my data and saves it to the server.
How can I manually trigger validation on all cells upon clicking save so that I can highlight validation errors prior to submitting to the server?
Similarly, if there is a server side error in a particular cell, how can I show the error message from the server in the context of the cell that contains the error?
public createFormGroup(dataItem: any): FormGroup {
return this.formBuilder.group({
'viewBy': [dataItem.viewBy, Validators.required],
'viewByDetail': [dataItem.viewByDetail, Validators.required],
'order': [dataItem.order, Validators.required],
'1997': [dataItem['1997'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])],
'1998': [dataItem['1998'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])],
'1999': [dataItem['1999'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])],
'2000': [dataItem['2000'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])],
'2001': [dataItem['2001'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])],
'2002': [dataItem['2002'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])],
'2003': [dataItem['2003'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])],
'2004': [dataItem['2004'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])],
'2005': [dataItem['2005'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])],
'2006': [dataItem['2006'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])],
'2007': [dataItem['2007'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])],
'2008': [dataItem['2008'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])],
'2009': [dataItem['2009'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])],
'2010': [dataItem['2010'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])],
'2011': [dataItem['2011'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])],
'2012': [dataItem['2012'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])],
'2013': [dataItem['2013'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])],
'2014': [dataItem['2014'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])],
'2015': [dataItem['2015'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])],
'2016': [dataItem['2016'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])],
'2017': [dataItem['2017'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])],
'2018': [dataItem['2018'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])],
'2019': [dataItem['2019'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])],
'2020': [dataItem['2020'], Validators.compose([Validators.pattern('^(\\d|,)*\.?\\d*$')])]
});
}
<
kendo-grid
>
<
kendo-grid-column
field
=
"description"
title
=
"Description"
>
<
ng-template
kendoGridEditTemplate
let-dataItem
=
"dataItem"
>
<
input
[(ngModel)]="dataItem.description" kendoGridFocusable
name
=
"Description"
class
=
"k-textbox"
/>
</
ng-template
>
</
kendo-grid-column
>
</
kendo-grid
>
<
ng-template
kendoGridEditTemplate
let-dataItem
=
"dataItem"
>
<
kendo-maskedtextbox
…></
kendo-maskedtextbox
>
</
ng-template
>
import { InputsModule, MaskedTextBoxComponent } from '@progress/kendo-angular-inputs';