Telerik Forums
Kendo UI for Angular Forum
1 answer
586 views

Hello,

I've been working towards creating a scrollview with content inside of the div area. Some information fits, however, when scrolling to new information the scrollview does not allow for height: auto;

below is an example of what my code looks like. I am needing to replace the height with an auto height, to make sure that the content that displays is viewable regardless of the height.

<kendo-scrollview class="scrollview addr-height" [data]="AddressData" [width]="'100%'" [height]="'500px'" [endless]="true" [arrows]="true">
        <ng-template let-item="item">
            <kendo-card-panel>
                <div header>
                    <strong><span>{{ AddressData.indexOf(item) + 1 }}&nbsp;/&nbsp;{{ AddressData.length }}</span></strong>
                    <button class="btn" (click)="selectAddress(item)">Ok</button>
                </div>
                <div always-display class="addr-block">
                    <div class="row">
                        <label class="col-6">Address Type: </label>
                        <label class="col-6">{{ item.ADDRESS_TYPE }}</label>
                    </div>
                    <div class="row">
                        <label class="col-6">Address: </label>
                        <label class="col-6">{{ item.ADDRESS_LINE_1 }}<br>{{ item.ADDRESS_LINE_2 }}</label>
                    </div>
                    <div class="row">
                        <label class="col-6">Primary: </label>
                        <label class="col-6">
                            <kendo-checkbox [(ngModel)]="item.PRIMARY_ADDRESS" [valuePrimitive]="true" [disabled]="true"></kendo-checkbox>
                        </label>
                    </div>
                    <div class="row">
                        <label class="col-6">Admin Contact: </label>
                        <label class="col-6">{{ item.ADMIN_CONTACT }}</label>
                    </div>
                    <div class="row">
                        <label class="col-6">Billing Contact: </label>
                        <label class="col-6">{{ item.BILLING_CONTACT }}</label>
                    </div>
                    <div class="row">
                        <label class="col-6">Phone: </label>
                        <label class="col-6">{{ item.PHONE }}</label>
                    </div>
                    <div class="row">
                        <label class="col-6">Fax: </label>
                        <label class="col-6">{{ item.FAX }}</label>
                    </div>
                </div>
            </kendo-card-panel>
        </ng-template>
    </kendo-scrollview>

 

Please let me know if you have more questions, as this is throwing me for a loop. Unfortunately, I am a new designer, and my coding skills are not yet what they need to be. I am assuming that this can be corrected inside of the TypeScript/JavaScript files.

Preslava
Telerik team
 answered on 02 May 2022
1 answer
279 views

I am using the external filter example

https://www.telerik.com/kendo-angular-ui/components/grid/filtering/external-filtering/

When initially filter, it filters and saves the filterValue as it does in the example

When I closed and re-open I get the following message: 



Error: There is no user-defined filter with 'sender_Name' field provided through the [filters] input property.

sender_name is the correct field. Below is the filters I am using.


export const  caseFilters: FilterExpression[] = [
    {
        field: 'sender_Name',
        editor: 'string',
    },
    {
      field: 'assign_To',
      title: 'Assign To',
      editor: 'string',
    },  
    {
        field: 'last_Date',
        title: 'Last Date',
        editor: 'date',
    },
    {
        field: 'case_Level',
        title: 'Level',
        editor: 'number',
    },
  
  ];


<div class="example-config">
  <p class="k-form-hint">
    Click the button below to filter the Grid from an external Filter
    component
  </p>
  <button kendoButton (click)="openFilter()" icon="filter">
    Filter the Grid
  </button>
</div>

<kendo-window *ngIf="opened" (close)="closeFilter()" [width]="620" [top]="300">
<div class="window-content">
    <kendo-filter #filter [value]="filterValue" [filters]="caseFilters">
    </kendo-filter>
    <button kendoButton (click)="applyFilter(filter.value)" style="width:100%;">Apply filter</button>
</div>
</kendo-window>

 


public applyFilter(value: CompositeFilterDescriptor): void {
  this.gridData = filterBy(this.orignalGridData, value);
  this.loadGrid();
  this.filterValue = value;
}

Preslava
Telerik team
 answered on 02 May 2022
1 answer
160 views

We are using a framework ASPNetZeo.

Since upgrading kendo (layout was upgraded from 4.0 to 6.2) any modal which is being called within a tabstip-tab has issues where the fade doesn't go away. If I take the modal outside a tabstrip it works fine.

Has anyone come across anything similar?

Dimiter Madjarov
Telerik team
 answered on 02 May 2022
0 answers
144 views

adding the loader in my projet


<kendo-loader type="infinite-spinner" themeColor="primary" size="medium"></kendo-loader>

No compilation or runtime error, but nothing on the page appears.

Any idea?

Pierre
Top achievements
Rank 2
Iron
Iron
 asked on 29 Apr 2022
1 answer
137 views

I'm using Kendo-Upload in Angular:

<div class="flex flex-col max-w-375">
    <kendo-uploaddropzone zoneId="uploadImagesZone">
      Only JPEG and PNG files are allowed.
    </kendo-uploaddropzone>
    <kendo-upload zoneId="uploadImagesZone" [autoUpload]="false"
      [saveUrl]="this.uploadImagesURL" [removeUrl]="this.removeImageUrl"
      (remove)="onRemove($event)" (cancel)="onCancel($event)"
      (success)="onUpload($event)" [restrictions]="myRestrictions"
                  [multiple]="true"
      [showFileList]="true" responseType="text">
    </kendo-upload>
  </div>

I've validated that the value of "this.uploadImagesURL" is set correctly and clicking on UPLOAD hits the right endpoint (Java Spring REST API):

@PostMapping("image/{name}")
public ResponseEntity<ImageDetails> compressImage(@RequestBody MultipartFile image, @PathVariable final String name) {
}
However, the value of image is NULL.

I've tested this endpoint via Postman and verified that "image" does contain the image. Why does the value set to NULL when the endpoint is called via Kendo-Upload
chethanagaajula
Top achievements
Rank 1
Iron
 answered on 29 Apr 2022
1 answer
190 views

Is there a way to make custom editors for the External Filter for the grid control

https://www.telerik.com/kendo-angular-ui/components/grid/filtering/external-filtering/

I was looking to have a dropdown for one of the editors.

Thanks

John

 

 

Svet
Telerik team
 answered on 29 Apr 2022
1 answer
410 views

We are localizing our application for the first time and have started to pull the key/translations from the yml files in @progress/kendo-angular-messages.

So far we have noticed that the en-US and fr-CA files are missing target values for the following:

  • kendo.chat.*
  • kendo.multiviewcalendar.*

If we run the command: "npx kendo-translate src/locale/messages.fr.xlf --locale fr-CA", the resulting file is missing target elements for meanings like kendo.chat.send and kendo.multiviewcalendar.today.

It looks like there are other missing packages as well like kendo.colorpicker.*, kendo.stepper.*, and kendo.tooltip.*.

This is a problem for us because we aren't using the Angular i18n built-in support.  Instead, we are using ngx-translate and have implemented our own MessagingService for the kendo strings, using the English files in the kendo-angular-messages as the source for the key/value pairings and for translation.  As a result, if the ids aren't in the yml files, we end up with keys displaying in our UI like this:

 

Would it be possible to update the kendo-angular-messages repo to contain all the strings, at least in English?

Dimiter Topalov
Telerik team
 answered on 29 Apr 2022
1 answer
3.4K+ views

I actually have a grid, in every column there's a delete button and when clicking on it, it has to remove the row.

Even though i used" kendoGridRemoveCommand" in the code below, nothing is working: 

<kendo-grid-command-column title="Command">
        <ng-template kendoGridCellTemplate >
            <buttonkendoGridRemoveCommand icon="delete" style="color: red;"></button>
        </ng-template>
    </kendo-grid-command-column>
schakravarty
Top achievements
Rank 2
Iron
Iron
 answered on 28 Apr 2022
1 answer
1.8K+ views

  

I can't simply disable the whole thing. I can't see to figure out how to access the pieces I need.. HELP ?


<div>
    <kendo-upload #upload [ngModel]="files" [saveUrl]="saveUrl" [removeUrl]="removeUrl" [disabled]="false"
        (upload)="onBeforeUpload($event)" (success)="onUploaded($event)" (select)="onSelect($event)"
        (remove)="onBeforeRemove($event)" [restrictions]="restrictions">
        <ng-template kendoUploadFileInfoTemplate let-files>
            <span class="k-file-name-size-wrapper">
                <span (click)="onDownloadClick(files[0])" class="k-file-name" title="{{ files[0].name }}">{{
                    files[0].name }}</span>
                <span class="k-file-size" ng-reflect-ng-class="[object Object]">Size: {{ files[0].size | fileSize:2
                    }}</span>
            </span>
        </ng-template>
    </kendo-upload>
    <div *ngIf="errors.length > 0">
        <p style="color: red;" *ngFor="let err of errors">{{ err }}</p>
    </div>
</div>

// @ViewChild('upload', { static: false })
    //upload!: HTMLElement;
    //.k-upload-status { display: none; }
   // $(".k-upload").find(".k-delete").hide();
    errors: string[] = [];
    constructor() { }
    ngOnInit(): void {
       // (this.uc.fileSelectButton.nativeElement as HTMLElement).classList.add('k-state-disabled');

    }

// .k-upload {
//     display: none;
// }
// .k-upload-button
// {
//     display: none;
// }
// .k-upload-files.k-reset {
//     display: none;
// }
// .k-widget.k-upload .k-action-buttons {
//     display: none;
// }
// .k-upload-button {
//     width: auto;
//     padding: 8px 25px;
//     font-size: 14px;
//     text-transform: none;
//     background: #112E51;
//     border-radius: 30px;
//     padding: 9px 20px;
//     margin: 50px 1px 15px 0px;
//     font-size: 14px;
//     color: #FFFFFF;
//     box-shadow: 0 2px 2px 0 rgba(156, 39, 176, 0.14), 0 3px 1px -2px rgba(156, 39, 176, 0.2), 0 1px 5px 0 rgba(156, 39, 176, 0.12);
// }

Svet
Telerik team
 updated answer on 28 Apr 2022
1 answer
924 views
How can I set the width of the expand/collapse column? In my grid the expand collapse column is displaying too wide and I would like to set the width but cannot find the correct selector to do so.
Dimiter Topalov
Telerik team
 answered on 28 Apr 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?