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
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!
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!
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.
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!
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.
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.
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 !
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