Telerik Forums
Kendo UI for Angular Forum
2 answers
94 views

Hi,

I have a problem with Selectable. The rows are selectable even though it is false.

Please check this link:

https://angular-td5xc3.stackblitz.io

Regards,

/Pouya

 

Dimiter Topalov
Telerik team
 answered on 17 Aug 2018
2 answers
1.7K+ views

In Angular 4 how i change language to spanish filters items in grid?

Thanks

Juan Diego
Top achievements
Rank 1
 answered on 16 Aug 2018
1 answer
207 views
In master detail grid I set the property [navigable] = "true" in all nested grids which makes me face issue that for example I have expanded a row and select the 3rd(or any) row of inner most grid, so it will first select the 3rd(or any) row of outer most grid and then moves in hierarchy to select the one which I actually want to get selected.  I have recreated this issue ion stackblitz,
following is the link of recreated isssue:
https://angular-mywq7v.stackblitz.io/.
Dimiter Topalov
Telerik team
 answered on 16 Aug 2018
5 answers
2.6K+ views

 

My framework uses moment.js for datetime values which return values in ISO dateformat.  I have managed to format the correct datetime values in the grid by calling a function in my controller:

<kendo-grid-column field="creationTime" title="{{ l('CreationTime')}}" width="150" [hidden]="false" media="lg">
    <ng-template kendoGridCellTemplate let-dataItem>
        {{ formatDate(dataItem.creationTime) }}
    </ng-template>
</kendo-grid-column>

And my function:

formatDate(date: any) {
    return moment(date).format('L');
}

The problem is that the filter now sees the data as a string and therefore I get the string filter.  I have exhaustively searched the forums on how to set the ISO date value to a javascript Date value and find myself scratching my head because all of the examples are either JQuery or angular with rxjs prior to angular 5.5.

So, I have the following method where this.gridData is a GridDataResult which is bound to my grid:

getEntitiesForKendo() {
    this.gridLoading = true;
    this._kendoGridService.getEntities(this.state)
        .subscribe((data) => {
            this.gridData = data;
            this.getOrganisationUnits();
            this.gridLoading = false;
        });
}

Which works great but a datetime value in this.gridData I have to use a function to convert to datetime in the grid column.  It would be better to cast the ISO date value to a javascript value so the grid can understand it but so far my investigations shjow that the only advice from Kendo is that I have to cast the value:

data.datetimevalue = new Date(data.datetimevalue)

In the subscription to my observable how do I get to the datetime value and cast it?

I have tried both the pipe and map operators to no avail.  Surely the conversion of ISO datetime values to javascript values is common?  Can anyone give me any pointers?  At the moment (sic.) I have had to disable filters on the datetime column which is not really what I want.

 

 

 

Bob
Top achievements
Rank 1
Veteran
 answered on 16 Aug 2018
1 answer
239 views

Hi, 

Is there a way to implement the drag and drop functionality to the grid column, in order to have a custom behavior ?

What I tried:
  1. Get an access to grid internal services or replace them with my custom services. That would allow me to control behavior of components on low level and reuse their events-emitting systems.
  2. Get an access to grid internal components/directives by using @ViewChild(ren). That would allow me to subscribe on events on child components level.
  3. Implement the d&d functionality by myself without kendo-ui grid API by adding custom mouse events listeners on grid container.

What I got:
  1. All services are private (marked as hidden). It's hard to reference them externally. Replacing them with custom implementation didn't work.
  2. Most of the internal components/directives are also private. Didn't get a valid approach (selector for ViewChild) to get required view elements.
  3. Kendo-ui grid sorting, grouping and reordering features for columns suppress most of the mouse events. It works only for columns with these features turned off.

Dimiter Topalov
Telerik team
 answered on 16 Aug 2018
4 answers
857 views

Hi , 

if we set value programatically to the autocomplete then clear is not triggering value change first time.

As I got this related link https://github.com/telerik/kendo-angular/issues/1052 , Saying its resolve in Fixed v1.4.0-dev.201712121657

But is there any quick fix / alternative way available to solve this without updating new version...

Alexander Popov
Telerik team
 answered on 13 Aug 2018
3 answers
487 views
We have implemented Tree map control using Angular 1.5 . Now we planned to upgrade our application to angular 5.
I found kendo-angular-charts,kendo-angular-grid etc were supported by kendo ,But i couldn't find exact package to be added for Kendo tree map using ng add command.

Please advice on this 


Thanks in Advance
Subin
Daniel
Telerik team
 answered on 13 Aug 2018
1 answer
162 views

I want to create a line chart with the bottom port shaded in.  I can accomplish this by adding an Area series with the same data points.  The only issue is when there's a null data point.  For line chart, nulls are not rendered as a point but Area treats it as 0.  Is it possible to fix this behavior?

Sample here: https://plnkr.co/edit/lXZCYxrb3d7ikiCXalhY?p=preview

 

Daniel
Telerik team
 answered on 09 Aug 2018
1 answer
370 views

Hello,

         I am using ContextMenu provided by Kendo UI Angular for grid. However, my question is, how to add "k-selected" class to the row when I right click the row with the default ContextMenu function. The ContextMenu function works, but the row will not be selected, I mean I need to "k-selected" class to the row to make selection more obvious. How can I do that? Thanks for your help.

 

James

Dimiter Madjarov
Telerik team
 answered on 08 Aug 2018
1 answer
2.7K+ views

The MultiSelect component appears to have an invisible textbox section that is allowed for the user to type and search the list.  How can I disable this?  It is very confusing at times because my users want to click the dropdown to select an option but you get no response because your actually clicking inside the textbox portion.  So you have to move your mouse over a bit to leave the textbox then click to bring up your options.  I have tried setting the filterable option to false but no luck.

 

Alternate solution is how I can enable the dropdown options to appear even if I click inside this textbox?

Alexander Valchev
Telerik team
 answered on 08 Aug 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?