Telerik Forums
Kendo UI for Angular Forum
1 answer
189 views

Good day!

I have a ComboBox (CB) residing in a FormField that works just fine.  I wanted to convert it to the MultiColumnComboBox (MCCB) to show a couple of extra fields.  I don't have time today, maybe over the weekend, to create a small, self contained example.  Yet, here are the two similar sections and their results:

CB

<kendo-formfield [showHints]="'always'" [showErrors]="'always'">
    <kendo-label [for]="'companyProfile'" text="Company Profile: "></kendo-label>
    <kendo-combobox ngDefaultControl [data]="companyProfiles"
                                [formControlName]="'companyProfile'"
                                [textField]="'companyName'"
                                [valueField]="'id'"
                                [filterable]="true"
                                (filterChange)="companyProfilesFilter($event)">
    </kendo-combobox>
    <kendo-formerror>
        <div *ngIf="formGroup.get('companyProfile').errors && formGroup.get('companyProfile').errors.required">
            Company profile is required.
        </div>
    </kendo-formerror>
</kendo-formfield>


MCCB

<kendo-formfield [showHints]="'always'" [showErrors]="'always'">
    <kendo-label [for]="'companyProfile'" text="Company Profile: "></kendo-label>
    <kendo-multicolumncombobox ngDefaultControl [data]="companyProfiles"
                                [formControlName]="'companyProfile'"
                                [textField]="'companyName'"
                                [valueField]="'id'"
                                [filterable]="true"
                                (filterChange)="companyProfilesFilter($event)">
        <kendo-combobox-column [field]="'companyName'"
                                [title]="'Name'"
                                [width]="250">
        </kendo-combobox-column>
        <kendo-combobox-column [field]="'companyId'"
                                [title]="'Profile Name'"
                                [width]="250">
        </kendo-combobox-column>
    </kendo-multicolumncombobox>
    <kendo-formerror>
        <div *ngIf="formGroup.get('companyProfile').errors && formGroup.get('companyProfile').errors.required">
            Company profile is required.
        </div>
    </kendo-formerror>
</kendo-formfield>

 

MCCB Without ngDefaultControl

As you can see I added the ngDefaultControl to the control after getting the following error on the MCCB without it:

ERROR Error: No value accessor for form control with name: 'companyProfile'
    at _throwError (forms.js:3576)
    at setUpControl (forms.js:3400)

 

By adding it, I did not get a javascript error any longer, but with no dropdown content as seen above.

Anything obvious to someone?

Peace,
Keith

 

Dimitar
Telerik team
 answered on 12 Feb 2021
1 answer
368 views

Hi, I am working with Kendo UI for Angular TileLayout components and I want to save the state of tiles after a user re-orders them. I see it's possible in other libraries and I wonder if it's possible in Angular library as well.

Thanks!

Svet
Telerik team
 answered on 11 Feb 2021
0 answers
106 views

Hello,

Many thanks for such a wonderful solution. I am however facing a problem. We are having a full screen use case in our application and have a groupable table. When I drag table headers to top the draggable element is visible when screen is not full screen but not visible while in full screen. 

I checked one more thread mentioning about, Where popup element is appended to a div rather than to body.

providers: [{
      provide: POPUP_CONTAINER,
      useFactory: () => {
         //return the container ElementRef, where the popup will be injected
         return { nativeElement: document.querySelector('.fullscreenDiv') } as ElementRef;
      }
    }]

But This solution is applicable to popup element. In my case Drag element is getting appended to body tag and hence being invisible. If somehow I can append it to internal div then it will work. 

Samir
Top achievements
Rank 1
 asked on 10 Feb 2021
2 answers
1.0K+ views

Hello, 

I need to programmatically expand and collapse a row (maybe by id). Can it be done somehow?

Also is it possible to expand and collapse the tree completely programmatically?

 

Thanks,

B

ICT
Top achievements
Rank 1
Iron
 answered on 10 Feb 2021
1 answer
1.6K+ views

Is there a way to select the next row when we hit keydown or keyup using the keyboard?

 

I tried setting the navigable property to true but in that case we have to hit enter to explicitly select a row. I want to select the next row on the keydown and keyup event.

Dimiter Topalov
Telerik team
 answered on 10 Feb 2021
2 answers
90 views

Hello, 

Hello, I rewrite the thread because it was deleted.

I'm trying to translate window action buttons using the WindowService.

Unfortunately they are not translated and I have an error in the console:

preview-c9f765cddfc622204e06b.js:1 ERROR TypeError: Cannot set property 'closeTitle' of undefined

Is this a known issue?

Here you can replicate the issue;

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

Thanks,

B

ICT
Top achievements
Rank 1
Iron
 answered on 09 Feb 2021
2 answers
749 views

Hi!

I try to use drawer component as a menu. So I configured the items as in example https://stackblitz.com/run/?file=app%2Fproducts.component.ts .

If I try to use a link like <a [routerLink]="['/']">to home</a> in product.component.ts it redirect me to home page. But in drawer component the active item isn't change. It stays at Products.

Shouldn't the Home item be active? Are my expectations wrong?

Thank you in advance.

Jose Wilson
Top achievements
Rank 1
 answered on 08 Feb 2021
2 answers
177 views
One of our products has a numeric field for navigating page numbers. The input paging works fine on chrome, firefox, and EDGE, but it doesn’t work on IE 11. Is there a workaround for this issue, or is this a defect with the control?
Dina
Top achievements
Rank 1
 answered on 08 Feb 2021
2 answers
418 views

Hi,

 

There is a requirement that I need to close the button dynamically when one of the dropDown is clicked. How do I close the drop down programatically? We need this asap and the document is not clear on how to achieve this. 

Regards.

Jyothi

Jyothi
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 05 Feb 2021
2 answers
529 views

Hi,

I need to be able to enable/disable dynamically. This is easy when there is a paren child relationship. I can use ViewChild to get access to the disabled variable of the child and that works.

     Example: MySplitButton component have a method to set the flag to true or false

                      setButtonStatus(flag : boolean){
                                  this.isButtonDisabled = flag }

In parent I can access the child and call the method.

 @ViewChild(MySplitButton) splitComponent : MySplitButton;

                     this.splitComponent.setButtonStatus(true);

 

When the MySplitButton component is not the direct child, how do I set access to the this component from lets say grand parent component?

Regards,

Jyothi

Jyothi
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 05 Feb 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?