Telerik Forums
Kendo UI for Angular Forum
0 answers
274 views

How to get dataitem at doubleClick event on Kendo Grid?

Hi,

<kendo-grid
                                        #myGrid
                                        [data]="gridData"
                                        [selectable]="true"
                                        (selectionChange)="onSelection($event)"
                                        (dblclick)="doubleClickHandler(myGrid, $event)">
onSelection(event){
   event.selectedRows[0].dataItem
}

doubleClickHandler(grid, event){

//get dataItem like onSelection function

}
I would like to retrieve the dataitem object in the double-click function as in the select function

 

alex
Top achievements
Rank 1
Iron
Veteran
 asked on 10 Mar 2022
1 answer
240 views

Hi all!

 

I want to create a area chart with dash-line fill. (mistake in header)

I use <kendo-chart-series> + <kendo-chart-series-item>

I've tried to use color and dash Type fields, but that doesn't work

 

May you help me with that? Big thanks!

What i want: https://prnt.sc/kU8pjFzvfyxF

What i have: https://prnt.sc/5hK7TeXQR12r

Martin Bechev
Telerik team
 answered on 10 Mar 2022
6 answers
4.4K+ views
Where can I find an example of Server Side Filtering (multiple columns) using .net c# (API) / Angular 5? 
Teun
Top achievements
Rank 1
Iron
 answered on 09 Mar 2022
2 answers
1.0K+ 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.2K+ 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
442 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
365 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.9K+ 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
145 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
136 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?