Telerik Forums
Kendo UI for Angular Forum
6 answers
379 views

I just turned on multi column sorting in one of my grids I use. When sorting on multiple columns, the index of the sort is not shown.

Am I missing a style sheet to load or component in my module to make this happen? 

Example page is:

https://test.tropicos.org/name/25509881 go to the Specimen Tab on this screen.

 

HTML:

<kendo-grid
      #nameSpecimenGrid
      [data]="gridDataResult"
      [loading]="isSearching"
      [pageSize]="state.take"
      [pageable]="{
        buttonCount: 5,
        info: true,
        type: pageableType,
        previousNext: true
      }"
      [skip]="state.skip"
      [sort]="state.sort"
      [sortable]="{
        allowUnsort: true,
        mode: 'multiple'
      }"
      [resizable]="true"
      [reorderable]="true"
      (dataStateChange)="onDataStateChange($event)">

 

Imported styles...

@import './theme/variables';
 
@import './theme/tropicos-layout-variables';
@import '~@progress/kendo-theme-default/scss/toolbar/_index.scss';
@import '~@progress/kendo-theme-default/scss/button/_index.scss';
@import '~@progress/kendo-theme-default/scss/autocomplete/_index.scss';
@import '~@progress/kendo-theme-default/scss/menu/_index.scss';
@import '~@progress/kendo-theme-default/scss/tabstrip/_index.scss';
@import '~@progress/kendo-theme-default/scss/input/_index.scss';
@import '~@progress/kendo-theme-default/scss/radio/_index.scss';
@import '~@progress/kendo-theme-default/scss/switch/_index.scss';
@import '~@progress/kendo-theme-default/scss/scrollview/_index.scss';
@import '~@progress/kendo-theme-default/scss/notification/_index.scss';
@import '~@progress/kendo-theme-default/scss/popup/_index.scss';
@import '~@progress/kendo-theme-default/scss/dialog/_index.scss';
@import '~@progress/kendo-theme-default/scss/grid/_index.scss';
@import '~@progress/kendo-theme-default/scss/pager/_index.scss';
@import '~@progress/kendo-theme-default/scss/action-buttons/_index.scss';
@import '~@progress/kendo-theme-default/scss/ripple/_index.scss';
@import '~@progress/kendo-theme-default/scss/multiselect/_index.scss';
@import '~@progress/kendo-theme-default/scss/dropdownlist/_index.scss';
@import '~@progress/kendo-theme-default/scss/tooltip/_index.scss';
@import '~@progress/kendo-theme-default/scss/panelbar/_index.scss';
@import '~@progress/kendo-theme-default/scss/datetime/_index.scss';
@import '~@progress/kendo-theme-default/scss/checkbox/_index.scss';
@import '~@progress/kendo-theme-default/scss/common/_index.scss';
@import '~@progress/kendo-theme-default/scss/dropzone/_index.scss';
@import '~@progress/kendo-theme-default/scss/numerictextbox/_index.scss';
@import '~@progress/kendo-theme-default/scss/combobox/_index.scss';
@import '~@progress/kendo-theme-default/scss/calendar/_index.scss';
@import '~@progress/kendo-theme-default/scss/card/_index.scss';

 

Martin Bechev
Telerik team
 answered on 18 Nov 2020
3 answers
1.1K+ views

Hello,

I am using the autoFitColumns method on my grid and the column resize works perfect, but when I moved the horizontal scroll to the end and apply a filter on a column or a reorder, the grid refreshes and the scroll jumps to the left. This behaviour also ocur in your auto-fitting example: https://www.telerik.com/kendo-angular-ui/components/grid/columns/resizing/#toc-auto-fitting-the-content

I will like the grid mantains the scroll position after any refresh just like it use to happen without autofit.

Another alternative I explored is using the scrollTo method after call the autoFitColumns method. But I was unable to capture the last column visible after the refresh.

I will appreciate your help. Thanks.

Aliyyah
Top achievements
Rank 1
 answered on 18 Nov 2020
1 answer
113 views
Hi All,
I would like to get support while implementing Angular Chart + a Kendo Range Slider. Please have a look to details below:

What I have so far:
- Kendo Chart Line with a Max/Min value in each axis is working fine. (read-only)
- Range Slider is working fine.

What is not working:
- Not able control (min/max values) chart when user modify the range criteria on Range Slider exclusively for the Y axis.
Only works the category Axis based on the recommendations on this answer.
https://www.telerik.com/kendo-angular-ui/components/charts/elements/selection/#using-selection-as-navigator

What I need:
- Set Chart Zoom In & Out values, based on on Range Slider output for the axis Y.
 I would like to know if is feasible to have both sliders to control the min/max axis.
Please see the attachment and let me know if you need anything else to understand better.
Thanks for your help.
Martin Bechev
Telerik team
 answered on 17 Nov 2020
1 answer
1.0K+ views

Hi,

I see that if an input in dialog focus(), we can not close the dialog with "Escape" key press.

Is there a general setting that can help me achieve this?

 

--

 

Or is there a way that I can trigger dialog close function with a general event?
document.querySelector(".k-dialog-content input")
                .addEventListener("keydown",function(e){ if(e.key == "Escape") { this.closest(".k-dialog")._wishToClose_(); } });

 


Dimitar
Telerik team
 answered on 17 Nov 2020
1 answer
505 views

Hi, I have two grids to export to excel in one worksheet. #gridData is main grid with report data, #grid1 is report filter data.  However, if user doesn't wants to see #grid1 in excel, it should only export #grid to excel. Can you tell me what I need to change with these codes? Thank you.

--first grid

<kendo-grid #grid [data]="gridData" (excelExport)="onExcelExport($event, grid1)">

<ng-template kendoGridToolbarTemplate>

<button type="button" kendoGridExcelCommand><span class="k-icon k-i-file-excel"></span>Export to Excel</button>
</ng-template>
<kendo-grid-excel fileName="reportname" ></kendo-grid-excel>
</kendo-grid>

--second grid

<kendo-grid [data]="dataFilters" (excelExport)="onExcelExport1($event)" #grid1  [height]="50" >
<kendo-grid-excel [fileName]="reportname" ></kendo-grid-excel>
</kendo-grid>

 

public onExcelExport(e: any, grid): void {
e.preventDefault();
this.sheetData = e;
grid.saveAsExcel();
}

onExcelExport1(e){
let dataFromFirstGrid = this.sheetData.workbook.sheets[0].rows;
e.workbook.sheets[0].rows.push({cells: []});
e.workbook.sheets[0].rows = [...e.workbook.sheets[0].rows, ...dataFromFirstGrid];
}

Martin Bechev
Telerik team
 answered on 16 Nov 2020
1 answer
276 views
If the editor is in readonly mode, I can't change its contents programmatically. I would expect that the user is not allowed to change the content, but not the developer. See the example below - if I click the button "Click me" the text in the editor does not change. I would expect it to change to "bla".

 

Is that possible in readonly or disabled mode?

 
import { Component } from "@angular/core";
 
@Component({
  selector: "my-app",
  template: `
    <kendo-editor
      [value]="value"
      [readonly]="true"
      style="height: 370px;"
    ></kendo-editor>
    <button (click)="onClickme()">Click me</button>
  `
})
export class AppComponent {
  public value = "eeeeee";
 
  onClickme() {
    this.value = 'bla';
    console.log('clicked');
  }
}
Martin Bechev
Telerik team
 answered on 16 Nov 2020
1 answer
342 views

Hello,

I'm currently trying to export an excel file from a grid with a custom filename. Everywhere I look the go-to suggestion is to use the

ExcelExportEvent

and 

e.workbook.fileName

to update the file name. This doesn't appear to work anymore. Looking into the source code I found the following lines trying to save a file:

saveFile(options) {
toDataURL(options).then((dataURL) => {
saveAs(dataURL, this.fileName, {
forceProxy: this.forceProxy,
proxyURL: this.proxyURL
});
});
}

 

This clearly indicates that this.fileName is used, which is initialized once to "Export.xlsx" and then never read back from the event again.
Is this intended behaviour? If so, has the ability to override the export name completely been removed?

Best Regards
Philipp

Dimitar
Telerik team
 answered on 16 Nov 2020
3 answers
457 views
hi, i'm trying to make a responsive toggle for mini mode for the drawer component. Can we achieve this with just CSS? Thx!
Dimitar
Telerik team
 answered on 16 Nov 2020
4 answers
439 views

Hello,

I need an on close event of each tab in a tabstrip component in Angular typescript.

How can we achieve that please ??

Thanks

Martin Bechev
Telerik team
 answered on 13 Nov 2020
1 answer
370 views

Hello,

After doing Group By on a grid. I'd like to expand/collapse a group in a Grid by clicking the entire row of the group header, not just the litte arrow on the left.

Currently, if we click on little group by arrow on the left side it will expand/collapse the group. Instead, need to expand/collapse by clicking the entire row of the group header. 

I have attached a screenshot for better clarification. 

Any help would be appreciated. Thanks in advance. 

Martin Bechev
Telerik team
 answered on 12 Nov 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?