This is a migrated thread and some comments may be shown as answers.

Kendo multiselect scroll

1 Answer 146 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Vinitha
Top achievements
Rank 1
Vinitha asked on 16 Jul 2020, 09:58 AM

I have a kendomultiselect with grouping enabled.And selection of all elements on clicking on a group is possible too.

My multiselect behaviour is as below,

When I select an element the item wil be removed from the datsource.when I select a group all elements under the group will be removed from data source.this is working fine.

But after removing the elements,I want to maintain the scroll position to the next element and key down/up events shoudk start from taht which is not working as expected.its always starting from first.

How can I acheive this behaviour..

Please help me out 

1 Answer, 1 is accepted

Sort by
0
Svet
Telerik team
answered on 20 Jul 2020, 05:48 AM

Hi Vinitha,

Indeed, at the moment there isn't a built-in feature that would allow to scroll the popup container to a specific element. However, what could be done as a workaround is to call the generic JavaScript scrollIntoView() method of the li element that represents the desired item that has to be scrolled to. Please check the following example demonstrating how the popup container can be scrolled to the "Volleyball" option automatically when opening the MultiSelect popup:

https://stackblitz.com/edit/angular-sbsz88?file=app/app.component.ts

Indeed, we aren't sure what is the specific implementation on your side as it isn't available with a supported feature out-of-the-box. But if you could provide us a StackBlitz example we could have a look at the code and get better acquainted with the overtaken approach and try to provide some further suggestions.

Regards,
Svetlin
Progress Telerik

Tags
MultiSelect
Asked by
Vinitha
Top achievements
Rank 1
Answers by
Svet
Telerik team
Share this question
or