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

UpArrow / DownArrow Keys not working when height of radtreegrid is small

6 Answers 93 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Chocks
Top achievements
Rank 1
Chocks asked on 09 May 2012, 11:10 AM
Hi,

I am using a radtreelistview grid control. When i am having more records and the height of grid is set as it will display one record with scrollbar, In this scenario UpArrow / DownArrow Keys not working for selecting records above and below rows.

If the height of grid is more and while displaying more than one record, uparrow and downarrow keys are working fine (able to select the record up and down)

Regards,
V.Chocks.

6 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 09 May 2012, 12:31 PM
Hi,

 I have tested the described scenario using the 2012.1.326 (Q1 SP 2012) binaries. Even when there is only one row visible I am able to move across the rows using the UpArrow / DownArrow keys. 

Would you please confirm the exact version of the RadControls you use? How is your TreeListView defined?

Regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Chocks
Top achievements
Rank 1
answered on 09 May 2012, 01:47 PM
Hi,

Thanks for your support

Telerik.Windows.Controls.GridView, Version 2011.2.712.1040

Working Fine when
1. Moving with Arrowkeys works fine when there is no wordwrap is done in any column of the visible row ,
( when only one row is visibile).

2. Arrowkeys works fine when the grid is displaying more than one row, even though the content of any column is wrapped.

Not working when

1. UpArrowKeys are not working fine If any one column has the content wrapped and if a single row is visible in grid.

2.  if I resize the column, then the respective row is automatically selected. (DownArrow works fine in this case, UpArrowkey is only not working)



For your info, i have a set of textbox and combobox below the grid and it is a separate xaml. When I clikc the save button in that page, the below code is written to set the foucs, which works when there is no wordwrap. is done.


if
(CurrentGrid == "Working")
{
this.workinglist.CurrentCellInfo = new GridViewCellInfo(this.workinglist.SelectedItem, this.workinglist.Columns[2]);
this.workinglist.Focus();
}
else if (CurrentGrid == "Master")
{
this.masterlist.CurrentCellInfo = new GridViewCellInfo(this.masterlist.SelectedItem, this.masterlist.Columns[1]);
this.masterlist.Focus();
}

Thanks And Regards,
V.Chocks.
0
Dimitrina
Telerik team
answered on 11 May 2012, 10:17 AM
Hello,

 I have tested with the latest binaries but in my project the navigation keys work fine. Please check the attached project and let me know how it woks.
 

All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Chocks
Top achievements
Rank 1
answered on 14 May 2012, 07:41 AM
Hi,

Using your project
I resized the Name column, so the content in that column is wrapped.
Minimized the height of grid as it will display only one row.
Select the last row Name column and then press up arrow key (here the last row is d:\)..
The up arrow key is not selecting the row above the last row, but the rectagle marks above row when up arrow is pressed.
Screenshots attached for your reference.

If the column is not wrapped, the keys are working fine. I hope the issue is regarding the height of the row which is not
able to display within the available space.

Thanks And Regards,
V.Chocks.
0
Dimitrina
Telerik team
answered on 15 May 2012, 03:32 PM
Hi,

 Thank you for the instructions. I followed them, but I was not able to reproduce the wrong behaviour. Please check the video I took in one of my tests. 

Regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Chocks
Top achievements
Rank 1
answered on 16 May 2012, 06:21 AM
Hi,

The issue is, selectionchange event or any event is not getting fired while pressing the up arrow key when the row height is more and content of that row is wrapped. if any event is fired we can set the focus. I am using IE 8.0.76, I am not sure whether a earlier version or other browser could resolve this problem.



Regards,
V.Chocks.
Tags
TreeListView
Asked by
Chocks
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Chocks
Top achievements
Rank 1
Share this question
or