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

Keyboard support issue

4 Answers 20 Views
VirtualizingWrapPanel
This is a migrated thread and some comments may be shown as answers.
Graeme
Top achievements
Rank 2
Graeme asked on 19 Sep 2012, 05:00 AM
I'm using the VirtualizingWrapPanel in a MS Listbox in an OOB app.

The Up / Down / PGUP / PGDN keys keep the selection in view if used from the selected (clicked on) item. This is as expected.

However, if I hit the HOME or END keys, the GUI selection disappears however the selected item is corrext FIRST / LAST. Now, if I use the cursors, the SelectedItem / SelectedIndex of hte Listbox correctly changes but the selection remains hidden until the SelectedItem / SelectedIndex is in the viewport. Then Up / Down / PGUP / PGDN keys act as expected.

Now, if you select an item in the middle of the Listbox range, hit the HOME or END key, switch app focus away, then switch app focus back, the press an arrow key, the expected next SelectedItem / SelectedIndex you would expect to be the item related to the SelectedItem / SelectedIndex after Pressing the HOME / END key but infact it is from the last item selected in the Viewport.

Is anyone experiencing the same?

Graeme

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 19 Sep 2012, 08:22 AM
Hi Graeme,

 The main reason behind this problem is the ListBox itself (Selector base class) - you can check ScrollIntoView() method of the Selector with JustDecompile. 

Definitely VirtualizingStackPanel.GetIsVirtualizing(this) will not work for other panels except VirtualizingStackPanel!

Regards,
Vlad
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
Graeme
Top achievements
Rank 2
answered on 19 Sep 2012, 11:36 PM
Hi Vlad,

Thanks for the response. I do understand - it is a shame that the interface is so tightly constrained.

I have not tried the RadListBox yet - I gather this does not have the same issue?

Thanks,

Graeme
0
George
Telerik team
answered on 24 Sep 2012, 03:45 PM
Hi Graeme,

Currently the same behavior can be observed in the RadListBox control as well, but we consider changing it for the official Q3 release. I hope this is acceptable for you.

Regards,
George
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
Graeme
Top achievements
Rank 2
answered on 25 Sep 2012, 01:46 AM
Hi George,

Thank would be great as we have had to disable functionality that uses ScrollIntoView due to the VirtualizingStackPanel ...


Regards,

Graeme
Tags
VirtualizingWrapPanel
Asked by
Graeme
Top achievements
Rank 2
Answers by
Vlad
Telerik team
Graeme
Top achievements
Rank 2
George
Telerik team
Share this question
or