Telerik Forums
Kendo UI for Angular Forum
1 answer
237 views

Hi,
SuccessHandler is called because of the 200 OK from API. but even if the API is returning 200 OK, still i wanted to change the state manually based on condition.

Once the file is uploaded, Is there a way to change value of state:State variable of interface FileInfo inside onSuccess handler?  

Something like below code, just wants to change the state so it doesn't show file is successfully uploaded message in green in upload control, So doing this is not changing the state, state remains as 3 (success) for all the files -

public onSuccess(e: SuccessEvent) {
  if (e.response.body.isSuccess) {
    // do success stuff
  } else {
    // change all files state to 0 (error in red)
    e.files.forEach(file => {
        file.state = 0;
    });
  }
}
Martin Bechev
Telerik team
 answered on 17 Aug 2020
3 answers
174 views

Hi Team,

 

   In angular multi-select, i need to add an image in the list. 

   After adding an image in the list , i need to perform certain actions on the list.

   1., On Hover on that image, i need to display a tool-tip

   2., On Click on that image, i need to replace the image with another image  and tool-tip needs to be displayed on hover on this image. 

  Actions vice versa

 

Hetali
Telerik team
 answered on 14 Aug 2020
1 answer
389 views

We are using telerik menu component to build left hand menu panel. Please see attached pic. It is working very good and very smooth.

 

However we need two features:

1) on a popup menu, want to have a header which is not clickable and only show text for the icon. 

2) if number of entries are more, want to be able to do scrolling through the popup menu. Also, while scrolling through the entries, header should stay intact.

3) show the scroll bar in popup so that user knows there are more entries.

Anyway to achieve that?

Thanks

Martin Bechev
Telerik team
 answered on 14 Aug 2020
1 answer
114 views
How can I have scroll on x-axis in bar charts? Currently when I have too many records the bars come closer automatically and overlap each other even though I have given 'gap and 'spacing' properties. I want to be able to scroll horizontally and keep the y-axis freeze, y-axis should not hide when I scroll horizontally.
Hetali
Telerik team
 answered on 13 Aug 2020
3 answers
827 views
I am using column charts in which the labels on category axis are too long and they overlap each other. How can I show ellipsis(...) for longer texts so that they do not overlap with other labels?
Hetali
Telerik team
 answered on 13 Aug 2020
1 answer
271 views

Is it possible to set Kendo menu direction to auto so that it can open in any direction according to available space?

My issue is that I have to use the vertical menu because of the minimum space that I have avaiable in mobile screen. But when the user clicks on the menu item it expands off the screen and the he can't read what is in the menu items.

 

 

Martin Bechev
Telerik team
 answered on 12 Aug 2020
1 answer
161 views

Hello,

I'm trying to use master-details grid with checkbox selection,

1. when i click on the collapse all the data refresh, and all the selections are deleted
2. how do i get all the selections from all the details grid in one button?

best regards.

Svet
Telerik team
 answered on 11 Aug 2020
1 answer
229 views

Hello,

 

my server support CORS so I want to use get instead of jsonp when fetching data using the action on a model ? can someone help me please ? Thanks

private fetch(action: string = '', data?: any): Observable<any[]> {
        return this.http
            .jsonp(`https://demos.telerik.com/kendo-ui/service/Products/${action}?${this.serializeModels(data)}`, 'callback')
            .pipe(map(res => <any[]>res));
    }

Svet
Telerik team
 answered on 11 Aug 2020
1 answer
5.1K+ views
<kendo-grid
          [data]="view | async"
          [height]="400"
          [pageSize]="gridState.take" [skip]="gridState.skip" [sort]="gridState.sort"
          [navigable]="true"
          [pageable]="true" [sortable]="true"
          (dataStateChange)="onStateChange($event)" >
        <kendo-grid-column field="ProductName" title="Product Name" width="250">
          <ng-template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex">
            <kendo-dropdownlist kendoGridFocusable [data]="names"
              [formControl]="(formGroups.get('items') as FormArray).at(rowIndex).get('ProductName')">
              </kendo-dropdownlist>
          </ng-template>
        </kendo-grid-column>
        <kendo-grid-column field="UnitPrice" title="Price" width="200">
          <ng-template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex">
            <kendo-numerictextbox kendoGridFocusable
              [formControl]="formGroups.get('items').at(rowIndex).get('UnitPrice')">
              </kendo-numerictextbox>
          </ng-template>
        </kendo-grid-column>
        <kendo-grid-column field="Discontinued" editor="boolean" width="80" title="Discontinued">
          <ng-template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex">
            <input type="checkbox" kendoGridFocusable
              [formControl]="formGroups.get('items').at(rowIndex).get('Discontinued')"
               />
          </ng-template>
        </kendo-grid-column>
        <kendo-grid-column field="UnitsInStock" editor="numeric" width="200" title="Units In Stock">
          <ng-template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex">
            <input type="number" kendoGridFocusable
              step="0.01"
              [formControl]="formGroups.get('items').at(rowIndex).get('UnitsInStock')"
              class="k-textbox" />
          </ng-template>
        </kendo-grid-column>
      </kendo-grid>
Svet
Telerik team
 answered on 11 Aug 2020
1 answer
156 views

How can I traverse the treeview? For example, I start at a node somewhere in the hierarchy and want to get data from its parent and then from the parent of the parent? 

 

I could use the TreeItemLookup, but it fires when checkboxes are enabled for each node only. And then I would get the parent of the current node only, not the parent of the parent.

Svet
Telerik team
 answered on 11 Aug 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?