Telerik Forums
Kendo UI for Angular Forum
1 answer
111 views

Hi,

How to expand row when user click on cell item in tree list.

please update below stackblitz demo .

https://stackblitz.com/edit/angular-ez48xs

Is there any feature available to row drag and drop for row  re-ordering ?

 

Svet
Telerik team
 answered on 04 Feb 2020
3 answers
1.1K+ views

Hi,

 

I have Test1 Page in which there is dropdown which has Footer as "Add New" button from which I can open Test2 page as Kendo Window so that I can add records using Test2 Page and it should be display to dropdownlist. I am using typescript. I am able to add the record and I can see that comes to dropdownlist as well but I want to close the kendo window once it creates a record. I tried window.close on Test2 Page but it says script cannot close page when they are open. I know window.close() is not the right way to do it. I should be able to get the control (KendowWindow) on Test2 page and close the kendo window. Can you please help?

Thanks

 

Here is code -

Test1.html

 

<div>
<label for="ddCedent">Cedent<span class="reqfield">*</span></label>
<kendo-dropdownlist #ancCedent [defaultItem]="{name: 'Select cedent...', businessPartnerNumber: null}" formControlName="cedent" [data]="cedents" [filterable]="true"
[textField]="'name'" [valueField]="'id'" [valuePrimitive]="true" class="form-control" [ngClass]="{ 'ng-invalid ng-touched': submitted && this.formControls.cedent.errors }">
<ng-template kendoDropDownListItemTemplate let-dataItem>                  
                  {{dataItem.name}}&nbsp;&nbsp;&nbsp;&nbsp;{{dataItem.businessPartnerNumber}}
</ng-template>
<ng-template kendoDropDownListFooterTemplate>
<table><tr><td></td><td style="float:right"><button kendoButton *ngIf="!openedAccount" (click)="showWindow()">Add New</button></td></tr></table>
</ng-template>
</kendo-dropdownlist>
<ng-container #container1></ng-container>
<div *ngIf="submitted && this.formControls.cedent.errors" class="k-tooltip-validation">
<div class="reqfield" *ngIf="this.formControls.cedent.errors.required">&#9432; Cedent is required</div>
</div>

 

Test1.ts

public showWindow() {
this.opened = true;
setTimeout(() => {
const window: WindowRef = this.windowService.open({
appendTo: this.containerRef,
title: "Add Account",
content: Test2Component,
width: 800,
height: 1200,
});

window.result.subscribe((result) => {
if (result instanceof WindowCloseResult) {
this.opened = false;
this.getAccounts();
}
});
});
}

Virender
Top achievements
Rank 1
 answered on 03 Feb 2020
4 answers
2.9K+ views

Hi,

We are using kendo-grid in out project and there is a requirement that the first row be selected by default on load. (once the data is retrieved and grid is initialized)

How do I achieve this? The documentation doesn't seem to indicate how this can be done.

Any help is greatly appreciated.

Regards,

Jyothi

Preslava
Telerik team
 answered on 29 Jan 2020
2 answers
192 views

Hello,

 

Today we have 10 DevCraft UI licenses, the development is over and we put the site into production. So, my question is, which and how many licenses should I buy to keep the site in production?

 

Regards,

Emanuel

Emanuel
Top achievements
Rank 1
 answered on 29 Jan 2020
1 answer
95 views
Is there anyway to access a notification close event? I need to know when a user has clicked on the notification close button.
Dimiter Topalov
Telerik team
 answered on 28 Jan 2020
5 answers
424 views

Hey,

I tried to export a barcode in my PDF with the npm Module ngx-barcode. This didnt work at at all. Is there a way to do this in Angular 2+?

I saw some documentation to do it with jQuery and the barcode builder from Telerik, but not with Angular. 

Thanks for the help. 

Svet
Telerik team
 answered on 27 Jan 2020
1 answer
333 views

Hi there, I'm having issues trying to change the color of the floating label. When I have a black background, the floating label cannot be seen because it is also black and blends in with the background.

Example in stack blitz https://stackblitz.com/edit/angular-kendo-textbox-material-black-background

How can I change the color of the floating label? Thanks.

Kind regards,

Andy

Andrew
Top achievements
Rank 1
 answered on 24 Jan 2020
1 answer
570 views

I have two value axis items and I would like one to be in percent and the other to be numeric.  How can I achieve this.   My current code produces the output in the image.

  <kendo-chart-value-axis>
    <kendo-chart-value-axis-item *ngFor="let item of valueAxes" [name]="item.name" [title]="{ text: item.title }"
                                 [max]="item.max" [majorUnit]="item.majorUnit">
      <kendo-chart-value-axis-item-labels [format]="numberFormat">
      </kendo-chart-value-axis-item-labels>
    </kendo-chart-value-axis-item>
  </kendo-chart-value-axis>
  <kendo-chart-category-axis>
    <kendo-chart-category-axis-item [title]="xAxis_Label" [axisCrossingValue]="crossingValues">
      <kendo-chart-category-axis-item-labels>
      </kendo-chart-category-axis-item-labels>
    </kendo-chart-category-axis-item>
  </kendo-chart-category-axis>
  <kendo-chart-axis-defaults>
    <kendo-chart-axis-defaults-labels>
      <!-- format="n0"-->
    </kendo-chart-axis-defaults-labels>
  </kendo-chart-axis-defaults>
  <kendo-chart-legend [visible]="false"></kendo-chart-legend>
  <kendo-chart-series>
    <kendo-chart-series-item *ngFor="let series of model"
                             [name]="series.name"
                             [data]="series.data"
                             [categoryField]="series.category" field="value"
                             [stack]="series.stack"
                             [color]="series.color"
                             [type]="series.type"
                             [axis]="series.axis">
      <kendo-chart-series-item-tooltip>
        <ng-template let-value="value" let-category="category">
          <!--[innerHTML]="series.dataLabel.replace('[value_1]', value.toLocaleString() ).replace('[year]', category ).replace('[series]', series.name  ).replace('[#%]', ((value)*100).toFixed(1).toString() + '%') "-->
          <span [innerHTML]="getToolTip(value, category, series.name, graphType  )"></span>
        </ng-template>
      </kendo-chart-series-item-tooltip>
    </kendo-chart-series-item>
  </kendo-chart-series>
</kendo-chart>
Dimiter Topalov
Telerik team
 answered on 23 Jan 2020
1 answer
2.6K+ views

I am trying to use the <kendo-datetimepicker> component and I import DateInputsModule into my module, but on loading my app I see the following error:

 

'kendo-datetimepicker' is not a known element:
1. If 'kendo-datetimepicker' is an Angular component, then verify that it is part of this module.
2. If 'kendo-datetimepicker' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message

 

Obviously I have npm installed the @progress/kendo-angular-dateinputs package and dependencies. I am using:

    "@progress/kendo-angular-dateinputs": "^3.7.4"

 

I am able to use the <kendo-datepicker> without problem. 

 

Why am I seeing this error? 

Dimiter Topalov
Telerik team
 answered on 22 Jan 2020
4 answers
4.1K+ views

I have a grid with grouping enabled. I'd like to know how to set the cursor style on the grid row (that is not a group header) to indicate it is selectable.  

Attached is a screenshot showing the rows with red arrow where I would need to show a hand cursor on row hover event.

Thanks.

 

Dimiter Topalov
Telerik team
 answered on 20 Jan 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?