Keyboard support issue

5 posts, 0 answers
  1. Graeme
    Graeme avatar
    21 posts
    Member since:
    May 2012

    Posted 19 Sep 2012 Link to this post

    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
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 19 Sep 2012 Link to this post

    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.

  3. DevCraft banner
  4. Graeme
    Graeme avatar
    21 posts
    Member since:
    May 2012

    Posted 19 Sep 2012 Link to this post

    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
  5. George
    Admin
    George avatar
    1332 posts

    Posted 24 Sep 2012 Link to this post

    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.

  6. Graeme
    Graeme avatar
    21 posts
    Member since:
    May 2012

    Posted 24 Sep 2012 Link to this post

    Hi George,

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


    Regards,

    Graeme
Back to Top
DevCraft banner