Telerik Forums
Kendo UI for jQuery Forum
1 answer
772 views
Hi,

Take a look at this example:
http://dojo.telerik.com/uFEsi/3

It looks good, but if uncomment "min: 0" so scaling will change and the chart will become unobvious.

I have a few questions:

1) How to dynamically calculate max and set max + 10% in this case?
2) How to dynamically calculate max for stacked chart? 
3) How to always show the label on Y axis with max value for a chart?

I think about using event for 1 and 2 and about using majorUnit for 3, but maybe I'm wrong.
Stefan
Telerik team
 answered on 27 Apr 2017
8 answers
976 views

Hi,

I am new to the Kendo U, and I am trying to build the app using UI calendar with Angular JS. Please help me with the solution.

 

Is it possible to disable the weekends of the particular month. For example, I am using april month. In here I need to disable the weekends and some days also, like 15 and 16 dates. Please provide the solution on how to achieve it. sample given below.

 

Your solution will help me with the product.

http://dojo.telerik.com/oMoDU/4 

 

Regards,

Dhinesh R

Dhinesh
Top achievements
Rank 1
 answered on 27 Apr 2017
2 answers
357 views

Hello

On my column chart I have prevented hiding default behavior when clicking on a legend item. Instead of that I highlight the serie with chart.toggleHighlight method. Now I'd like to display bold the item corresponding to highlithed serie. I have been looking for a solution for hours unsuccessfully. Can you help me ?

Thanks

Christophe
Top achievements
Rank 1
 answered on 27 Apr 2017
1 answer
275 views

When exporting to Excel, if the spreadsheet has any validation (using range.validation(string here)) then the Export fails to open in Excel 365. Error message is below:

<?xml version="1.0" encoding="UTF-8"
standalone="true"?>
-<recoveryLog xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
<logFileName>error113640_02.xml</logFileName>
<summary>Errors were detected in file
'C:\Users\freemand\Downloads\CurrentStageSkuLine.xlsx'</summary>
-<removedFeatures summary="Following is a list of
removed features:">
<removedFeature>Removed Feature: Data validatin from
/xl/worksheets/sheet1.xml part</removedFeature>
</removedFeatures>
</recoveryLog>

Currently we get around this, by removing all the range.validation before we export and then add it back afterwards. However this is incredibly slow (over 15 seconds, when the spreadsheet has only 3 rows populated).

Thanks

Marc

Nencho
Telerik team
 answered on 27 Apr 2017
6 answers
563 views
Hi,

1. I'm trying to create a process diagram using the kendoDiagram function. However, the labels for each node are not contained inside its shape's container. I tried several methods to break the line, but none seem to work. Is it possible to wrap the text of each node so it will fit inside its shape's container?

2. Another question, is it possible that on initial load I can give a shape a different color besides the one that is set in shapeDefaults? I am using dataSource and I assume that I can do something like:
 { id: "one", name: "C" width: 40, height: 40, type: "circle", fill: "red"}
I tried other property names like 'color' but it does not work. 


Please see attached sample screenshot and the script I used.


Thanks!!

Boyan Dimitrov
Telerik team
 answered on 27 Apr 2017
1 answer
480 views

The treeview is currently configured to load on demand.

Scenario is this I need to be able to refresh a node (ask database) due to one of the following actions from a user:

 

1. Adding of a new node under currently selected item.
2. Deleting of a node that is the currently selected item.
3. Updating the name of the currently selected item.

 

I have this working however if the selected node is expanded and all nodes below are expanded also - the state of the branch up to the selected node is retained but the nodes past the selected node are now collapsed after a reload of the selected node. (In the case of the delete - I refresh the parent node).

 

Is there a way to maintain the state of the branches so that a refresh does not collapse the branch below the refresh point?

 

If my description is insufficient I can explain with a more specific scenario and include screen shots.

Nencho
Telerik team
 answered on 27 Apr 2017
7 answers
444 views

Hello, i'm implementing a grid with filters in angular 4.0 using Kendo-ui-angular.

I been trying to automatically bind my source of data (API) into the grid data like so:

Service for the API: 

public query(state: any): void {
       this.getAll(state)
           .subscribe(x => super.next(x));
   }
private getAll(state: any): Observable<GridDataResult> {     
       return this.http
           .post(this.BASE_URL + 'getall', state)
           .map(response => response.json())        
           .map(response => (<GridDataResult>{
               data: response.result.data,
               total: response.result.total
           }));
   }

 

And my component:

public ngAfterViewInit(): void {
       this.grid.dataStateChange
           .do(({ skip, take }: DataStateChangeEvent) => {
               this.gridConfig.skip = skip;
               this.gridConfig.pageSize = take;
           })
           .do(x => console.log(x))
           .subscribe(x => this.hrtypeService.query(x));
   }

 

My view:

<kendo-grid
[data]="listHrType | async"
[pageSize]="gridConfig.pageSize"
[scrollable]="'virtual'"  
[skip]="gridConfig.skip"
[sort]="gridConfig.sort"
[rowHeight]="15"
[height]="300"
[selectable]="true"
[filter]="gridConfig.filter"
[filterable]="true"
[groupable]="gridConfig.groupable"
 >

But i'm having an issue with the filters, everytime i try to filter one of the columns, the object returns just one single colum, and overlaps the remaining one's.

i add 1 filter to the field test_1 and i get

field: "teste_1"
operator:"contains"
value:"teste_value_1"

and once i fill out test_2 with a second filter, it overwrites the first object in the array, instead of adding a second filter

field: "teste_2"
operator:"contains"
value:"teste_value_2"

Opposed to

[field: "teste_1"
operator:"contains"
value:"teste_value_1"]
[field: "teste_2"
operator:"contains"
value:"teste_value_2"]

 

I'm not manipulating the data, just return what i get from the kendo-ui into my API, what configuration did i missuse?

Apologies beforehead if i made my issue unclear.

mario
Top achievements
Rank 1
 answered on 27 Apr 2017
1 answer
115 views

Is the Spreadsheet component compatible with DataSource objects configured for WebApi requests? The transport properties for updating records don't see to be triggered when I update a row etc. Are there examples available on github or elsewhere?

 

Regards

Ianko
Telerik team
 answered on 27 Apr 2017
1 answer
96 views

As an end-user, it's impossible to resize the last column if a horizontal scroll is present (no gap at the end), as soon as you try to drag it, the drag ends immediately up against the scrollbar.

Tried on the latest Firefox & Chrome.

Try for yourself on the KendoUI demos:

1. Go to http://demos.telerik.com/kendo-ui/spreadsheet/index

2. Scroll all the way to the right.

3. Grab the last columns edge and attempt to resize.

4. Notice nothing is resized.

Nencho
Telerik team
 answered on 27 Apr 2017
4 answers
4.0K+ views
Is it possible to hide a row (or a set of rows) in a grid?
Terrina
Top achievements
Rank 1
 answered on 26 Apr 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?