RadMultiselect scroll to the last item

1 Answer 60 Views
MultiSelect
chandi
Top achievements
Rank 1
chandi asked on 23 Mar 2022, 11:32 AM

Hi,

01.   Assign the values to MultiSelect control as follows.

// Assign the Values array to MultiSelect
    kendoMultiSelect.value(allValues);

After assigning values, its scroll to the last item as below picture.

                                  

I need to navigate it to the first item in the list.

02.   When I try to expand the multiselect control first time it get close and second click it expanded.  I have set AutoClose=False.

 

Can anyone help me resolve these two issues.

 

Thank You,

Regards,

Chandi

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 28 Mar 2022, 07:26 AM

Hi Chandi,

The MultiSelect scrolls the list so a selected item is visible and makes it easier to deselect if needed. 

If you would like to override this behavior, you can use the OnOpen client-side event of the control and reset the scroll on open:

function OnOpen(sender, args){
    setTimeout(function(){
        args.get_sender().list.find(".k-list-scroller").scrollTop(0);
     },50);
}

As for the flickering behavior, it could be related to some custom logic or other events that blur the control. Can you replicate the issue in any of our online demos:

Regards,
Peter Milchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
MultiSelect
Asked by
chandi
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Share this question
or