Telerik Forums
Kendo UI for Angular Forum
2 answers
889 views

Hi,

I have implemented a drawer with a router-outlet inside and when I click on the back or forward buttons in the browser the route changes but the selected item in the drawer stays the same.

Furthermore, I have seen that the same issue is presented in the example in the documentation.

https://www.telerik.com/kendo-angular-ui/components/layout/drawer/routing/

Regards

Stefan
Top achievements
Rank 1
Iron
 answered on 09 Mar 2022
1 answer
2.1K+ views
I need to clear the kendo searchbox input field to null or blank through a function call in angular 9
Yanmario
Telerik team
 answered on 09 Mar 2022
1 answer
371 views

I have an angularjs kendo upload object:


<input name="myDoc" id="myDoc" type="file" kendo-upload="vm.myDocUploader" k-localization="{ select: 'Upload Document' }" k-success="vm.onUploadDocumentSuccess" k-async="{ saveUrl: vm.saveDocUrl, removeUrl: vm.removeDocUrl, autoUpload: true}" />

I need to attach my MVC anti-forgery token to this request before it uploads (and when they are deleted). How would I go about this?

I've found a few examples for J-Query but can't seem to apply them to angularjs. They reference using the SetRequestHeader method, but I cannot access the request header when using the k-upload() method. 

Thanks!

Neli
Telerik team
 answered on 09 Mar 2022
0 answers
282 views

This is more of a general question about how charts work and how data manipulation works. I have an issue where I am lacking the vocabulary to explain what I want to my developer,

I have a large table in sql. I have a webapp that I use to view the data in a kendo ui grid, and it is written in angularjs and jsp,

I think it would be best to illustrate with a simple example:

I sell apples, and I log in every apple into my inventory along with all of the characteristics of the apple, like color, the date I bought it, the date it was sold, the condition of the apple (rotten/not rotten), the name of the farm the apple came from, plus a lot more about the apple.

I want to chart the number or green apples that were marked sold each day for the past month, and then compare that to the number of red apples that were marked sold per day over the past month.

I am essentially counting the rows that match the filtering (color = green, availability = sold) and then plotting them based on the date sold column

This is something I might make a pivot table for in excel and then graph from that

I want to explain this to him and give links of examples, where I am not plotting numbers in the database, I'm summing the number of rows that match specific filtering and then plotting the per day total over specific date range.

My googlefoo is failing me so I thought I would ask someone who has done something similar to this and what it is called so I can search more efficiently for answers.

Thank you in advance for your help!

karai
Top achievements
Rank 1
 asked on 09 Mar 2022
0 answers
1.8K+ views

Hi,

It does few days that i can't resolve this error : ERROR TypeError: data.slice is not a function.

I try to print my data in a kendo grid and the error is always present.

In my other projects, i don't have the error in my grid.

Here is my code :

 

html :

<kendo-grid [kendoGridBinding]="traductionData" [filterable]="true" [resizable]="true" [sortable]="true" [pageable]=true [pageSize]="15" class="table">
  <kendo-grid-column field="Code" title="Code" [headerStyle]="{'background-color': '#082d61', 'color': '#ffffff', 'font-weight': 'bold'}">
    <ng-template kendoGridFilterCellTemplate let-filter let-column="column">
      <kendo-grid-string-filter-cell [column]="column" [filter]="filter" [showOperators]="false">
      </kendo-grid-string-filter-cell>
    </ng-template>
    <ng-template kendoGridCellTemplate let-traduction>
      {{ traduction.Code }}
    </ng-template>
  </kendo-grid-column>
  <kendo-grid-column field="Francais" title="Français" [headerStyle]="{'background-color': '#082d61', 'color': '#ffffff', 'font-weight': 'bold'}">
    <ng-template kendoGridFilterCellTemplate let-filter let-column="column">
      <kendo-grid-string-filter-cell [column]="column" [filter]="filter" [showOperators]="false">
      </kendo-grid-string-filter-cell>
    </ng-template>
    <ng-template kendoGridCellTemplate let-traduction>
      {{ traduction.Francais }}
    </ng-template>
  </kendo-grid-column>
  <kendo-grid-column field="Anglais" title="Anglais" [headerStyle]="{'background-color': '#082d61', 'color': '#ffffff', 'font-weight': 'bold'}">
    <ng-template kendoGridFilterCellTemplate let-filter let-column="column">
      <kendo-grid-string-filter-cell [column]="column" [filter]="filter" [showOperators]="false">
      </kendo-grid-string-filter-cell>
    </ng-template>
    <ng-template kendoGridCellTemplate let-traduction>
      {{ traduction.Anglais }}
    </ng-template>
  </kendo-grid-column>
</kendo-grid>

type-script :

import { Component, OnInit } from '@angular/core';
import { ApiService } from 'src/app/services/api.service';

@Component({
  selector: 'app-grid-traductions',
  templateUrl: './grid-traductions.component.html',
  styleUrls: ['./grid-traductions.component.scss']
})
export class GridTraductionsComponent implements OnInit {

  traductionData !: any[];

  constructor(private api: ApiService) { }

  ngOnInit(): void {
    this.getLesTraductions();
  }

  getLesTraductions(){
    this.api.getAllTraductions()
    .subscribe(res=>{
      this.traductionData = res;
      console.log(this.traductionData)
    })
  }

}

my api-service :


import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http'
import { map } from 'rxjs/operators';
import { environment } from 'src/environments/environment';

@Injectable({
  providedIn: 'root'
})
export class ApiService {

  localUrlAPI: string = environment.urlAPI;

  constructor(private http : HttpClient) { }

  getAllTraductions(){
    return this.http.get<any>(this.localUrlAPI+"GetAllTraductions")
    .pipe(map((res:any)=>{
      return res;
      console.log(res);
    }))
  }
}

 

Thx for the time.

Kylian
Top achievements
Rank 1
 asked on 07 Mar 2022
0 answers
110 views

Hi all!

I would like to connect values from series-item to categories in category-axis-item.

But it doesn't work together.

What I want: https://prnt.sc/HjCWlDLbjJy8

What i have: https://prnt.sc/eyDunF-lvGew

But data on each screenshots is same.

I need to use const categories - all months of the year. But i have big array of values per day.

May you help me with that? How can i reach that?

Big thanks!

Andrey
Top achievements
Rank 1
 asked on 07 Mar 2022
1 answer
81 views

Hi,

I have the scenario where I have to implement a three-layered master-detail as shown in the snapshot.

Is there any possibility of exporting?

Thanks in advance.

Ivan
Telerik team
 answered on 07 Mar 2022
1 answer
400 views

I'm going to start development for a new CRUD app using Angular 6. I have used Angular Material and Bootstrap in my earlier projects. For a change, I want to use another UI Framework and see how it goes. What would be the best stable, easy to use Angular UI framework so far which is ideal for a CRUD application?

I googled and found that ng-lightning and SemanticUI have nice design, so could you please share your experience with those two frameworks if you have.

Martin Bechev
Telerik team
 answered on 07 Mar 2022
1 answer
347 views

Hello,

I am developing an angular application on webpack 5 .i have two problems with Grid that is:

I - Change Items Per Page

First time, i change items per page, the page number is not updated.

2nd, i re-click on select items per page, the page number is updated now.

II - Always shows "No records available." even if there is data.

 

Please help me soon.

Thanks !

Ivan
Telerik team
 answered on 07 Mar 2022
0 answers
173 views

Hello Team,

I have a scenerio where i need to show the data in multiple lines within autocomplete field, I'm able to get multiple lines in item template but when selected it is displaying in single line, is there any way to show it in multiple lines?

TIA.

Srija .P

 

Srija
Top achievements
Rank 1
 asked on 06 Mar 2022
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?