Telerik Forums
Kendo UI for Angular Forum
1 answer
23 views

On the grid the sort seems to be working fine. 
But when I am doing the next search after clearing the results in the grid the sort function is not resetting. 

 

  clear() {
    this.firstName = "";
    this.lastName = "";
    localStorage.removeItem("firstName");
    localStorage.removeItem("lastName");
    this.orgName = "";
    this.rowData = [];
    this.filteredRowCount = 0;
    // this.grid.filterService.clear();
    this.grid.filter = undefined;
    this.grid.sort = [];
    this.state.sort = [];
    const emptySortState: DataStateChangeEvent = {
      sort: [],
      skip: 0,
      take: this.pageSize
    };
    this.onDataStateChange(emptySortState);
    this.grid.data = this.rowData;
    this.grid.columns.forEach((column: ColumnComponent) => {
      column.filter = undefined;
    })
    this.filter = { logic: 'and', filters: [] };
  }

 
Zornitsa
Telerik team
 answered on 08 Feb 2024
1 answer
713 views

Hi,

I have made a kendo grid with the select checkbox so the user can pick the rows required.

I have everything working that I need except users would like to sort the selected rows so they appear at the top (allows them to check easily what has been selected).

I cannot figure out how to do this, it doesn't seem like I can bind the checkbox to a field.  At the moment the only way I can think of is to use the "selectedKeysChange" event to set a boolean variable to true for each selected row and then make a custom button a manual sort (although not gone down this route just yet so not sure it will work)

 

Is there a built in way to sort selected rows / kendo-grid-checkbox-column?

 

Many Thanks

Yanmario
Telerik team
 answered on 21 Oct 2022
1 answer
62 views

In the Grid Component, we can specify a multiSortKey option in the sort settings to tweak how multi-column sorting works (see https://www.telerik.com/kendo-angular-ui/components/grid/api/MultipleSortSettings/#toc-multisortkey).  However, it does not appear that option is available when using the Tree List component. 

Our app uses a mixture of Grids and TreeLists and we like using the multiSortKey option for grids but miss that option in Tree Lists.  Are the plans to add the multiSortKey option for Tree List?

Svet
Telerik team
 answered on 12 May 2022
1 answer
184 views

I have 10 items as a string array displaying using Kendo UI sortable and I have  one treeView. I want to do drag and drop from that list to this treeview. As and when I drop item from list to treeview it should ask me to enter name of that node.(means node should be editable.)

EX: I have a list of items like site, building

And I have a treeview of many sites and building under different site. As and when I drag and drop building from list to treeview(under any site),it should as me to enter the name of building.

 

Please provide solution for the above scenario.

Martin Bechev
Telerik team
 answered on 04 Apr 2022
1 answer
47 views
I am using Kendo for my Angular app. I return 1,000 rows of data and sorting on a column becomes increasingly slow, and it freezes up my whole screen. Does anyone have an idea how I can make it faster?
Valentin
Telerik team
 answered on 29 Dec 2021
1 answer
93 views

alos when endless scrolling enabled. Do we need to implement from Backend side ? Is there any examples available to check ?

 

Thanks.

Svet
Telerik team
 answered on 12 May 2021
6 answers
110 views

Hello!

 

While understanding the Sortable component, I went across the following issue: 

- I opened the example from https://www.telerik.com/kendo-angular-ui/components/sortable/ in StackBlitz 

- I added a button that when clicked, should add a new Item (image-one)

- I clicked the button

- Item array was updated, but interface is not showing the new item (image-two)

Is there another way to refresh the interface, to see the items up to date?

 

Thank you!

Claudia
Top achievements
Rank 1
 answered on 13 Jan 2021
1 answer
54 views

Hi,

it is possible to find out the item that currently selected or set active by user without drag(event or index).
In my case, i would like to update a neighboring component when the user click an item in the sortable.
Thanks in advance for your answer

Svet
Telerik team
 answered on 20 Nov 2020
2 answers
53 views

Is there an equivalent to Sortable hint like the Sortable hint in jQuery:https://docs.telerik.com/kendo-ui/api/javascript/ui/sortable/configuration/hint ?

 

Dimiter Topalov
Telerik team
 answered on 08 Jun 2020
3 answers
133 views

I have a question. How to add content through TemplateRef to Sortable/Kendo. For example, I want to render several Windows. I can do that? Or is it for text only?

 

<kendo-sortable [kendoSortableBinding]="[contentTemplates]" class="row">

<ng-template let-item="item">
    {{item.templateRef}}
</ng-template>

</kendo-sortable>

 

contentTemplates - It is QueryList Templates

 
 
 
 
 
Vladislav
Top achievements
Rank 1
 answered on 07 May 2020
Top users last month
Patrick
Top achievements
Rank 1
Iron
Iron
Iron
MIS
Top achievements
Rank 1
Ross
Top achievements
Rank 1
Marcin
Top achievements
Rank 1
Iron
Iron
Sean
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?