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

RadGridView does not scroll to follow position of the keyboard cursor when editing a cell

1 Answer 72 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 19 Nov 2012, 06:23 PM
After following the instruction in the forum post How do you enter multiple lines of text in a cell I now have a nice way to enter multiple lines of text into a cell of my RadGridView control however if you actually attempt to use this for text that is of any significant size you will notice that the RadGridView control will not scroll along with keyboard cursor within the TextBox. To see the effect load the example from the aforementioned post and attempt to type in the the second column and create enough lines so that the text wraps past the bottom of the visible scroll region of the RadGridView. Has anybody found away to work around this? I've noticed all of the scroll into view methods but none seem to be specific to a position within a child control of an edit template of a column of the RadGridView. I'm guessing one could look for changes in size of the hosted TextBox and then attempt to adjust the scroll position of the RadGridView but I'm wondering if anybody else has already solved this problem as it seems like it would be a common one.

After writing this post I realized that the same issue may also exist when entering simple single line text where the right portion of the column happens to be partially off of the horizontal scroll region and sure enough that also exhibits the same problem So I guess my question is a general one, how to make RadGridView follow the keyboard cursor when editing text in one of the cells?

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 22 Nov 2012, 02:39 PM
Hi Jeff,


It turns out that this behavior would be the expected one and,unfortunately, there is no way to control horizontal / vertical scrollbar in this case.

As a work around for this issue, you could set fixed width of the column.

 
Regards,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Jeff
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or