标签: kendo-angular-ui

如何根据剑道网格中角度的特定列条件更改行的颜色

我想将红色应用于已完成时间列值大于 24 的行。我该怎么做。请帮助我是角度新手。

<kendo-grid [kendoGridBinding]="gridData">
    <kendo-grid-column field="RequestNumber" title="Request No."  
width="110" >
    </kendo-grid-column>
<kendo-grid-column field="RequestNumber" title="Request No."  width="110" >
    </kendo-grid-column>
<kendo-grid-column field="Name" title="Name."  width="110" >
    </kendo-grid-column>
<kendo-grid-column field="CompletedIn" title="CompletedIn"  width="110" >
    </kendo-grid-column>
 </kendo-grid>
Run Code Online (Sandbox Code Playgroud)

kendo-ui kendo-grid angular kendo-angular-ui

8
推荐指数
2
解决办法
7140
查看次数

在Angular 7中使用Jest测试时,缺少Kendo Intl Service的语言环境信息

我对处理语言环境格式的非常特定的数字组件进行了多次测试。使用Karma进行的测试很好,但是一旦将其更改为Jest,就会出现此错误:

NoLocale: Missing locale info for 'de-DE' Solution: http://www.telerik.com/kendo-angular-ui/components/internationalization/troubleshooting/#toc-no-locale

我尝试了附件链接中的所有建议,但没有一个成功。

IntlService被初始化en-US的区域设置ID,所以我改成了每个测试,根据我想断言(格式de-DEen-GB)。

这些是component.spec.ts中的测试示例:

numeric-textbox.component.spec.ts

import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { NumericTextBoxComponent } from './numeric-textbox.component';
import { FormsModule } from '@angular/forms';
import { CldrIntlService, IntlModule, load } from '@progress/kendo-angular-intl';

describe('NumericTextBoxComponent', () => {
  let component: NumericTextBoxComponent;
  let fixture: ComponentFixture<NumericTextBoxComponent>;

  beforeEach(async(() => {
    TestBed.configureTestingModule({
      imports: [ FormsModule, IntlModule ],
      declarations: [ NumericTextBoxComponent ],
    })
    .compileComponents();
  }));

  beforeEach(() => {
    fixture = …
Run Code Online (Sandbox Code Playgroud)

jestjs angular kendo-angular-ui

7
推荐指数
1
解决办法
221
查看次数

标签 统计

angular ×2

kendo-angular-ui ×2

jestjs ×1

kendo-grid ×1

kendo-ui ×1