Listbox does not update cursor position after mouseclick

When using a Listbox or related control, if you select an item with a mouse click and then use the up and down arrows the cursor moves from the "old" position. I expect the cursor to start at the selected position. This is both in single and multiselect mode.

Here is what I see in our demo - one can normally move between items using up/down arrows after item selection with mouse:

That's correct, you can move with up/down. But the starting position is the top of the list (or the place where you last moved your selection to with the up/down), not the item you selected with the mouse.

So on Blazor ListBox Component | Free UI Components by Radzen

  • Scroll down on the top list and select "Ernst Handel" with the mouse
  • Press down on keyboard.
  • This selects "Alfreds Futterkiste", I would expect "Familia Arquibaldo"

I was able to replicate it! We will do our best to include fix in our next update Monday.

1 Like

I've spoke to soon. After debugging the problem and I've found that this behavior is result of optimization not to request items when using IQueryable - if you use ToList() for example in our demo the selection will work properly: