Telerik Forums
Kendo UI for Angular Forum
5 answers
141 views

In my requirement, I need to display both Room Number and Room Type on the side of the scheduler. Though I did achieve this by vertical grouping now I want is split that Room Column into Two so that on one side it shows Room Number and on the other Room Type. Please see the image for reference

I was able to achieve this with a custom field in the resource array 
My Example

But I need it like in the image attached

Thanks 
Ivan Zhekov
Telerik team
 answered on 28 Jun 2018
3 answers
603 views

Hi Everyone,

I'm using Angular 6 and Kendo UI for Angular. 

When I have chart with more than one series item in it, tooltips are not shown. They are appear for a microsecond(you cant see the full content of a tooltip) then it disappears and then it is redrawn again. So every time I hover over the chart area, the tool tip is redrawn multiple times (it doesnt stop while I hover).

Any help would be much appreciated.

 

The component HTML is:

 

  <div class="row">
    <div class="col-lg-12 text-center pv-lg col align-self-center">
      <!-- <kendo-chart class="catProdSales" [transitions]="false"> -->
      <kendo-chart [transitions]="true">
        <kendo-chart-area background="none" [height]="height"></kendo-chart-area>

        <kendo-chart-tooltip format="Default Content {0}" [shared]="true">
        </kendo-chart-tooltip>

        <kendo-chart-legend position="right" orientation="vertical">
        </kendo-chart-legend>

        <kendo-chart-value-axis>
          <kendo-chart-value-axis-item>
            <kendo-chart-value-axis-item-labels culture="en-GB" format="c">
            </kendo-chart-value-axis-item-labels>
          </kendo-chart-value-axis-item>
          <kendo-chart-value-axis-item name="secondAxis">
            <!-- <kendo-chart-value-axis-item-labels culture="en-GB" format="c">
                      </kendo-chart-value-axis-item-labels>                   -->
          </kendo-chart-value-axis-item>
        </kendo-chart-value-axis>

        <kendo-chart-category-axis>
          <kendo-chart-category-axis-item [labels]="categoryAxisLabelConf" [categories]="data?.LabelData.slice(1)" [axisCrossingValue]="[0, 1110]">
          </kendo-chart-category-axis-item>
        </kendo-chart-category-axis>

        <kendo-chart-series>
          <kendo-chart-series-item type="column" [data]="data?.ColumnData?.slice(1)" axis="secondAxis" name="Packs">
            <kendo-chart-series-item-tooltip>
              <ng-template let-value="value">
                {{ value
                < 1000 ? value : (value / 1000).toFixed(1) + 'k' }} </ng-template>
            </kendo-chart-series-item-tooltip>
          </kendo-chart-series-item>
          <kendo-chart-series-item *ngFor="let item of data?.LineData;" type="line" [data]="item.slice(1)" [name]="item[0]">
            <kendo-chart-series-item-tooltip>
              <ng-template let-value="value">
                {{ value
                < 1000 ? value : (value / 1000).toFixed(1) + 'k' }} </ng-template>
            </kendo-chart-series-item-tooltip>
          </kendo-chart-series-item>
        </kendo-chart-series>
      </kendo-chart>
    </div>
  </div>

Daniel
Telerik team
 answered on 28 Jun 2018
1 answer
182 views
Hi,
Currently I'm using kendo.all.min.js in our application which is load from overrides in bower.json.But whenever I tried to load only the required packages like kendo.datepicker.min.js, kendo.scheduler.min.js etc in the bower.json file the applications shows module error with kendo.directive.

Is it possible to load separate packages for each component without causing module error or is it better to load only kendo.all.min.js file?
Which way is better for performance in application?
Bozhidar
Telerik team
 answered on 27 Jun 2018
4 answers
118 views

I've noticed a regression in the dropdown list when i specify the dropdown height. The shadow is resizing but not the actual 

list. Here is a plunker showing the issue

 

https://plnkr.co/edit/A8bgcQrFi6ijrwEezvRp?p=preview

 

Is this a known issue and is there a work around??

 

 

n/a
Top achievements
Rank 1
 answered on 27 Jun 2018
2 answers
5.6K+ views
I have a button and if I click on that it should open a modal and it should be displayed on entire row and when I click again it should go away with the same width as before.. it should be like hierarchical behavior. How can I achieve that?
Svet
Telerik team
 answered on 27 Jun 2018
1 answer
136 views

In my angular.js app view I initiate kendo grid with the  directive:

<kendo-grid options="gridConfig" id="grid" class="operationsGrid" flex></kendo-grid>

and in my kendo grid configuration I have a custom command action:

{ command: { name: "comment", click: showComments, template:'<md-menu><md-button aria-label="Open phone interactions menu" class="md-icon-button" ng-click="openMenu($mdMenu, $event)"> <i class="material-icons">comment</i> </md-button> <md-menu-content width="4"> <md-menu-item> <md-button ng-click="redial($event)"> <i class="material-icons">close</i> </md-button> </md-menu-item> <md-menu-item> <md-button disabled="disabled" ng-click="checkVoicemail()"> <i class="material-icons">open</i> </md-button> </md-menu-item> <md-menu-divider></md-menu-divider> <md-menu-item> <md-button ng-click="toggleNotifications()"> <i class="material-icons">comment</i> </md-button> </md-menu-item> </md-menu-content> </md-menu>' }, width: "80px" }

The button with the comment material icon appears, but the click action openMenu($mdMenu,$event) doesn't get called. I don't even get an error. 

 

whats wrong my setup? 

Svet
Telerik team
 answered on 26 Jun 2018
1 answer
885 views

I tried to integrate the keyboard navigation in my code but i get the  activeRow, activeCell attributes as undefined( in incell-tab.directive.ts file)   as shown in attached image.please check out my code in plunker and suggest a solution.

https://next.plnkr.co/edit/1p2315uxx3OAuYcM1CpL?p=preview

Dimiter Topalov
Telerik team
 answered on 26 Jun 2018
5 answers
283 views
Is there a way to configure a ScatterLine chart's x-axis so that the series goes edge-to-edge, while also ensuring that specific x-axis values get a label?

The chart I am drawing has starting and ending x-values that are not conveniently integer divisible by the major unit value for my chart. If I do not specify the axis min or max, I get a chart that looks like the first attachment. If I set the axis min/max, I get a chart that looks like the second attachment. What I would like is a combination of the two, with the labels including one at 0 like the first chart, with other labels extending outwards from there at major unit intervals. With the example of major unit 0.05, the labels on the second attachment should be [-0.15, -0.1, -0.05, 0, 0.05, 0.1]. Is this possible?

Dimiter Topalov
Telerik team
 answered on 26 Jun 2018
2 answers
2.0K+ views

To date I've made several modifications to the in-cell editing example to get it to work in my Angular reactive forms. The following is how I typically built my cellClickHandler and cellCloseHandler:

 

  public cellClickHandler({ sender, rowIndex, columnIndex, dataItem, isEdited }) {

    if (!isEdited) {
      sender.editCell(rowIndex, columnIndex, this.createFormGroup(dataItem));
    }
  }


  public cellCloseHandler(args: any) {
    const { formGroup, dataItem } = args;

    if (!formGroup.valid) {

      args.preventDefault();
    } else if (formGroup.dirty) {

      this.editService.assignValues(dataItem, formGroup.value);
      this.editService.update(dataItem);

      let iFeasibilityFlag: IFeasibilityFlag = {
        'id': dataItem.id,
        'flagSeq': dataItem.flagSeq,
        'location': dataItem.location,
        'warning': dataItem.warning,
        'description': dataItem.description,
        'stop': dataItem.stop
      }

      this.feasibilityFlagService.save(iFeasibilityFlag, false);
    }
  }

  public createFormGroup(dataItem: any): FormGroup {
    return this.formBuilder.group({
      'id': dataItem.id,
      'flagSeq': dataItem.flagSeq,
      'location': dataItem.location,
      'warning': dataItem.warning,
      'description': dataItem.description,
      'stop': dataItem.stop
    });
  }

 

This works fine if I have data I'm keying in by hand but I've noticed that this pattern doesn't give me a formgroup name that I can latch onto such as if I need to declare in kendoGridEditTemplate: let-formGroup="namedFormGroup" or in kendo-dropdownlist: [formControl] ="namedFormGroup.get('property')"

 

The attached pictures show how I'm trying to contend with this at present. Unfortunately while I've tried this several ways the following tends to show up often and I'm not sure how to read this error:

TypeError: control.setParent is not a function

 

Take a look at the attached images and let me know if there's something you can think of that I need to add to these or if you see something I'm doing breaking the typescript let me know what I'd need in order to map it correctly.

 

Thank you!

 

Ron
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 25 Jun 2018
1 answer
90 views

Is there an update to the Visual Studio template mentioned here

https://www.telerik.com/blogs/cooking-with-aspnet-core-and-angular-2

To use Core 2.1.x and Angular 6.x ?

 

Dimiter Topalov
Telerik team
 answered on 25 Jun 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?