Telerik Forums
Kendo UI for Angular Forum
1 answer
277 views

In trying to move the Master-Detail Grid example from the Telerik site [ https://www.telerik.com/kendo-angular-ui/components/grid/advanced-features/hierarchy/ ] to a VS Code solution, I am greeted by the following error when the solution is served;

"ERROR in src/app/category-details.component.ts(44,39): error TS2345: Argument of type 'Object' is not assignable to parameter of type '{ CategoryID: number; }'."

I have found some threads suggesting this may be due to a change in Angular 2.2.

Any thoughts as to why this solution still works as a Plunker, yet not as a VS Code solution; what am I missing here?

Steve
Top achievements
Rank 1
 answered on 12 Dec 2017
2 answers
598 views

I've been using the InCellEditing and GridBinding directives with the KendoGrid in the way shown in your InCellEditing Example (https://www.telerik.com/kendo-angular-ui/components/grid/editing/editing-directives/#toc-the-in-cell-directive)

What I've needed to do recently is (ideally) subscribe to an Observable that would give me give me all the current data in the grid every time some data has been changed (added/updated/removed).

I went digging through the grid code base and saw that the Grid & InCellEditingDirective is injected with a LocalDataChangesService. I'd love to be able to access this service too so that I can consume a stream of change events.

Is there an easy way to achieve this?

Svet
Telerik team
 answered on 08 Dec 2017
3 answers
767 views

Is it possible to render the legend marker as a line matching the dash types (i.e. dot, dash, solid).

 

In this plunker for instance, two line series have the same colour but differentiate on dash type and I want the legend to reflect that.

 

http://plnkr.co/edit/SRAahc7NN9LRDiq9EfLt?p=preview

 

Svet
Telerik team
 answered on 07 Dec 2017
3 answers
4.3K+ views

Hi,

I am trying add a dropdown as filter in the column template. Using this I managed to do it but I doesn't apply the filter to the grid. The Plunker doesn't work due to 'Access-Control-Allow-Origin' problem so I can't see any live example. The dropbownlist is shown and the value returns correctly but nothing happens in the grid. I've added field parameter since the fieldName and valueField is not the same. I've recognized that the filter is always undefined

 

My HTML:

<kendo-grid-column field="sSY90Falttyp" title="Fälttyp" width="160px">
    <ng-template kendoGridFilterCellTemplate let-filter>
        <my-dropdown-filter [filter]="filter" [data]="fieldTypes" textField="text" valueField="value" field="sSY90Falttyp">
        </my-dropdown-filter>
    </ng-template>
    <ng-template kendoGridCellTemplate let-dataItem>
        {{getFieldTypeText(dataItem.sSY90Falttyp)}}
    </ng-template>
</kendo-grid-column>

 

DropdownlistFilterComponent:

import { Component, OnInit, Input } from '@angular/core';
import { CompositeFilterDescriptor, FilterDescriptor } from '@progress/kendo-data-query';
import { FilterService, BaseFilterCellComponent } from '@progress/kendo-angular-grid';
 
@Component({
    selector: 'my-dropdown-filter',
    templateUrl: './dropdownlist-filter.component.html',
    styleUrls: ['./dropdownlist-filter.component.scss']
})
export class DropdownlistFilterComponent extends BaseFilterCellComponent {
 
    public get selectedValue(): any {
        const filter = this.filterByField(this.field);
        return filter ? filter.value : null;
    }
 
    @Input() public filter = <CompositeFilterDescriptor>null;
    @Input() public data: any[];
    @Input() public textField: string;
    @Input() public valueField: string;
    @Input() public field: string;
 
    public get defaultItem(): any {
        return {
            [this.textField]: "Select item...",
            [this.valueField]: null
        };
    }
 
    constructor(filterService: FilterService) {
        super(filterService);
    }
 
    public onChange(value: any): void {
        this.applyFilter(
            value === null ? // value of the default item
                this.removeFilter(this.valueField) : // remove the filter
                this.updateFilter({ // add a filter for the field with the value
                    field: this.field,
                    operator: "eq",
                    value: value
                })
        ); // update the root filter
    }
 
}
Dimiter Topalov
Telerik team
 answered on 07 Dec 2017
1 answer
283 views

Hi,

Is it possible to use TreeView in Kendo UI Angular? We found that on JQuery but we couldn't find on Kendo UI Angular? Also, we found a npm package on https://www.npmjs.com/package/@progress/kendo-angular-treeview. Is it beta version? If you have treeview in angular, can you propose an example for it?

 

Best wishes.

Dimiter Topalov
Telerik team
 answered on 06 Dec 2017
5 answers
559 views

Hi all,

I've implemented Virtual Scrolling with Custom Binding Directive.
Unfortunately, I have an issue when converting State to query string using toDataSourceRequestString: 

if virtual scrolling requests to skip 49 records, with pageSize =100 it gets converted by toDataSourceRequestString to Page=1&pageSize=100 
and incorrect results are returned. 

Please suggest fix or workaround.

Thanks,
Yuriy  

Svet
Telerik team
 answered on 29 Nov 2017
2 answers
651 views

Hello,

I have tried the DropDownList using "valuePrimitive" like in one of your demos. But I think there is a little bug which only appears when the "valuePrimitive" is set to "true". You can reproduce this in your example: If you open the dropdown, and then leave it without choosing any of the options it is loosing the selected value.

This only happens after the initial loading of the control. If you first select a value and then open the control again, leaving it, it keeps the value correctly.

Best regards!

 

BigzampanoXXl
Top achievements
Rank 1
 answered on 28 Nov 2017
2 answers
158 views
I have bound some data in JSON format to a Bar Chart. How can I get the bound data on the click event of a bar in the bar chart.
Svet
Telerik team
 answered on 28 Nov 2017
2 answers
389 views

Hi,

 

Is it possible to make a grid with Pie charts inside? I saw nested charts page in JQuery version but I couldn't find any information about Angular. Can you explain and show example if it is possible ?

 

 

Safa
Top achievements
Rank 1
 answered on 23 Nov 2017
1 answer
119 views

Hi,

while using Kendo Sortable component, I've run into following problem:

If I use an input element inside a sortable element, I need to DOUBLE-click the input to be able to edit it. 

I found that Kendo UI for jQuery has ignore option (https://docs.telerik.com/kendo-ui/api/javascript/ui/sortable#configuration-ignore) - is there anything similar in Kengo Angular UI that I'm missing?

Thanks

Dimiter Topalov
Telerik team
 answered on 23 Nov 2017
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?