Telerik Forums
Kendo UI for Angular Forum
1 answer
405 views

Hi! I wanted to know how to programmatically scroll the editor to the current cursor. I am currently using


this.kendoEditor.exec('insertText', { text: '##FLAG##' });
this.kendoEditor.value = this.kendoEditor.value.replace('##FLAG##', '<b>content</b>');

and if the cursor was at the bottom the user will not see the new text.

Martin Bechev
Telerik team
 answered on 07 Sep 2021
2 answers
285 views

Hi

I read data from an service and when scheduler component tried to read data i have following error message

 

4:14:34 PM ERROR [./src/app/core/interceptors/GlobalErrorHandlerService.ts:25] TypeError: this.originalData.forEach is not a function
    at DataBindingDirective.process (index.js:6438)
    at DataBindingDirective.set data [as data] (index.js:6402)
    at setInputsForProperty (core.js:10940)
    at elementPropertyInternal (core.js:9984)
    at Module.ɵɵproperty (core.js:14764)
    at AgendaSchedulerComponent_Template (agenda.scheduler.html:22)
    at executeTemplate (core.js:9579)
    at refreshView (core.js:9445)
    at refreshComponent (core.js:10616)
    at refreshChildComponents (core.js:9242)

 

I have tried to debug without succes to find data with problem

 Object.keys(ev).forEach(function(x){
              console.log('\"'+ev[x]+'\"');
            }); is ok

 

How could find problem field ? Regard

ixen
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 07 Sep 2021
1 answer
661 views
There is a list in kendo table i have to drag it and drop to add to subfolder it should get notification in subfolder please help
Yanmario
Telerik team
 answered on 03 Sep 2021
0 answers
215 views

Hi,

How can I automatically focus on a kendo ui textbox when page is loaded?

I found the focus() method, is there another way to focus without calling this method?

thx!

Kristof
Top achievements
Rank 1
Iron
Iron
 updated question on 02 Sep 2021
0 answers
287 views
In a master-detail (hierarchy) grid with checkbox-only selection enabled, is it possible to deselect rows in master-detail levels based on the currently selected row, such that row selections would only be allowed within a single level per hierarchy branch?
Lile
Top achievements
Rank 1
 asked on 02 Sep 2021
1 answer
320 views

For filtering we are using the kendo data query "process" library.  The issue is that when you combine this with paging, there are issues with determining the total number of items since "process" returns an array only of your page size. 

So I essentially have to run "process" twice:

1.  So I can get the filtered and paged data

2.  Again with just the filter parameters so I can get how many total items are in the set after filters have been applied

 

For example:


loadItems() { const myData: any = []; //Some data in here let gs: State = { skip: 0, take: 10, filter: { //Some filter data } as CompositeFilterDescriptor };

//THis will filter my data, then return the paged slice of it let gd: GridDataResult = process(myData, gs);

//This will run just the filter so I can get the total items gd.total = process(myData, {filter: gs.filter} as State).data.length; }


Is there a better way to get the total number of filtered items when I am also using paging instead of having to run "process" twice?  I have thought about extending the "process" so I can add an extra field on it with total entries but not sure how to get started. 

Any assistance would be appreciated.

Svet
Telerik team
 answered on 02 Sep 2021
1 answer
292 views

Is there a way to restyle the grid filter row (e.g. move the filter icon below the searchbox)?

Martin Bechev
Telerik team
 answered on 02 Sep 2021
0 answers
784 views

Hi,

I want to have a list with options to select just one option in it.
So I have choosen for the "drop down list"-control

 

1) I want that the width of the drop down list control is as long as the longest item in the list.

I already did some dirty tricks to change the width of the drop down list:

.kendo-dropdownlist-width-auto {
  width: auto !important;
}
.kendo-dropdownlist-width-100-percent {
  width100% !important;
}

 

The auto trick is as long as the selected list item, but not as the longest possible item.
The width-100 trick takes 100%

 

2) How to make the drop down list responsive (automatic resizing for multiple devices)?

3) Is the DropDownList control the best option? What about ComboBox, what are differences?

I forked the basic drop down list example from the Kendo UI website to show the case:

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

Kristof
Top achievements
Rank 1
Iron
Iron
 asked on 01 Sep 2021
1 answer
288 views

I have a simple grid and just want a button to clear all search filters. I can clear the actual filters, but the values in the textbox persist (screenshot below). How can I clear those textboxes?


Hetali
Telerik team
 answered on 31 Aug 2021
0 answers
158 views

Hi

 

I have following error message when i tried to uise scheduler

 

[code]

03:00 PM ERROR [./src/app/core/interceptors/GlobalErrorHandlerService.ts:25] TypeError: date.getTimezoneOffset is not a function
    at offset (offset.js:17)
    at convertTimezoneUTC (zoned-date.js:35)
    at Function.fromLocalDate (zoned-date.js:140)
    at index.js:4604
    at Array.map (<anonymous>)
    at SchedulerComponent.processEvents (index.js:4603)
    at SchedulerComponent.set events [as events] (index.js:4175)
    at DataBindingDirective.set data [as data] (index.js:6402)
    at setInputsForProperty (core.js:10940)
    at elementPropertyInternal (core.js:9984)

 

My object interface


export interface VueEvenement  extends SchedulerEvent {
  estReadOnly: boolean;
  dossierId?: number | null;
  dossierNom: string;
  infosPatientRdv: InfosPatientRdv;
  estListeAttente: boolean;
  estListeAttenteSpecifique: boolean;
  estUrgent: boolean;
  collegueId: number;
  activiteId: number;
  tacheId?: number | null;
  bureauId: number;
  etatId: number;
  duree: number;
  remarque?: string | null;
  confirmation?: boolean | null;
  professionnelOccupationId: number;
  raisonAnnule?: string | null;
 }

 

My Java backend as date like

    @Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime end;

 

[/code]

Perhaps is an date format problem

Could you help me ?

 

Regards

 

bahaso
Top achievements
Rank 1
Iron
Iron
Iron
 updated question on 31 Aug 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?