Telerik Forums
Kendo UI for Angular Forum
0 answers
1 view

Hi.

I'm trying to clear data in a control if the user has entered an incomplete date. My ControlValueAccessor, which wraps a DateTimePicker, implements the following logic.
If the control contains a {incompleteDate: true} error and the input field loses focus, patchValue(null) is executed. However, the control still contains the error {incompleteDate: true}

I think not correct check in this line (libs/dateinputs/src/dateinput/dateinput.component.ts)

this.isDateIncomplete = this.kendoDateObject.hasValue() && this.value === null;

full method

    private updateIncompleteValidationStatus(): void {
        const previousValue = this.isDateIncomplete;
        this.isDateIncomplete = this.kendoDateObject.hasValue() && this.value === null;  // Not correct check

        if (previousValue === this.isDateIncomplete || !this.incompleteDateValidation) { return; }

        if (isPresent(this.ngControl) && !isPresent(this.pickerService)) {
            this.cdr.markForCheck();
            this.ngZone.run(() => this.onValidatorChange());
        } else if (isPresent(this.pickerService)) {
            this.pickerService.dateCompletenessChange.emit();
        }
    }

Installed packages

"@progress/kendo-angular-dateinputs": "15.4.0",
"@angular/core": "^16.2.12",
 Thanks for help.

 

Andrii
Top achievements
Rank 1
 asked on 25 Apr 2024
0 answers
5 views

Hello, for months I've noticed that your Angular component demonstrations have style issues as shown in the capture below. Honestly, if there's one place where one expects to judge the quality of components, it's on the vendor's demo page. I don't understand how you can let things stay like this.

 

Jonathan.

 

Jonathan
Top achievements
Rank 1
Iron
Iron
 asked on 25 Apr 2024
1 answer
8 views

Hi there,

Is it possible to pass in a function to the saveUrl attribute of the Upload component.

My use case is that I need to trigger the upload with a button but need to do some additional processing first (calling another API). The uploading of the files will depend on this other API call.

Is the only option through an Interceptor? I've seen an implementation for React (see here) and it would be great if we have the same functionality in Angular.

Is this implementation in the roadmap and if so, when can we expect this to come out?

Also, when we set the autoUpload attribute to false, it automatically shows a Clear and Upload buttons. Is there a way to hide these buttons? I know you can position them through the actionsLayout attribute. It would be nice to have a none option to hide them.

Thanks!

Yanmario
Telerik team
 answered on 25 Apr 2024
0 answers
5 views
is there any option to dynamically change SCSS variables runtime? please suggest best method
Krishna
Top achievements
Rank 1
 asked on 24 Apr 2024
0 answers
4 views
public onFileUpload(e: UploadEvent): void {
      // const file = e.files[0].rawFile;
    // e.preventDefault();
    // const formData = new FormData();
    // formData.append("file", file, file.name);
    // formData.append("sourceId", "1");
    // formData.append("documentTypeId", "1");
    // formData.append("associationId", this.id.toString());
    // formData.append("documentTypeName", "InventoryManagementImage");
    // this.HttpClient.post("upload", formData).subscribe(
    //  (response) => {
    //    console.log("Upload successful:", response);
    //    // Handle response
    //  },
    //  (error) => {
    //    console.error("Upload failed:", error);
    //    // Handle error
    //  }
    // );
    // console.log(e, "e");
   

  }

if i use this it works but when i try another way its sucks  

public uploadSaveUrl = "upload"

const formData = new FormData();

    // Append additional data to FormData
    formData.append("sourceId", "1");
    formData.append("documentTypeId", "1");
    formData.append("associationId", this.id.toString());
    formData.append("documentTypeName", "InventoryManagementImage");
    // Iterate through selected files and append to FormData
    e.files.forEach((file) => {
      formData.append("file",file.rawFile, file.name);
      console.log( file.name, " file");
    });
    // Set the FormData as the upload data
    e.data = formData;
    console.log(e.data ,e ,  'data') is i possible to adding this formdata on kendo uploadSaveUrl ? and make request then?
avto
Top achievements
Rank 1
 asked on 23 Apr 2024
0 answers
9 views

Hi,

I used the kendo ui angular for  tilelayout to create a dashboard but i am not able to remove or add the tiles as there is no delete or add icon in the tiles.  So currently drag and  drop of the tiles are happening but not able to remove the tile from the dashboard.
can you please help me?

I am building the application using Angular.

Kendo
Top achievements
Rank 1
 updated question on 23 Apr 2024
0 answers
5 views
please provide date fiters example for kendo grid 
obulesh
Top achievements
Rank 1
 asked on 22 Apr 2024
2 answers
16 views

Hi,

Is there a way to do some data binding on action buttons while using the service dialog.

        const dialog: DialogRef = this.dialogService.open({
            title: 'Create Dialog',
            content: SomeFormComponent,
            actionsLayout: 'end',
            actions: [
                { text: 'Cancel', fillMode: 'clear', themeColor: 'accent' },
                {
                    text: 'Create Something',
                    themeColor: 'primary',
                    fillMode: 'solid',
                    cssClass: 'height-override',
                },
            ],
        });

I want to place some binding to the "Create Something" button to toggle it being enabled/disabled.

Is this even possible? Is there some sort of workaround?

 

Thanks!

Zornitsa
Telerik team
 answered on 22 Apr 2024
0 answers
3 views
We recently update our application from kendo-angular 14 to 15 and noticed that throughout our entire application the kendo-cards got a fixed width of 285px.

Now we noticed that you now have to set a width for the kendo-cards yourself, otherwise it will default to 285px.
My question is why was this 285px chosen as a default? It did not make much sense for us. We expected the width to be 100%, like it was before.

What was the reason for this change? And is this something that could be reverted back to the initial state where it was full width?
Remco
Top achievements
Rank 1
 asked on 22 Apr 2024
1 answer
9 views

Hello,

I was wandering if you have plans to:

1. Add media player to the Kendo UI for Angular

2. Improve Gantt Chart with additional features from Kendo UI for jQuery like ability to drag task's start and end on the chart.

Thank you,

Sergey

 

Martin
Telerik team
 answered on 22 Apr 2024
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?