I have Winform RadGridView and when I click in a cell that is partially displayed the grid horizontally auto scrolls to right, than by the next click scrolls to left etc.
This is not to very userfriendly. See Telerik demo in Attach
How can I horizontally auto scrolling fix
Regards,
Elek
3 Answers, 1 is accepted
0
Accepted
Jack
Telerik team
answered on 21 Apr 2012, 02:33 PM
Hello Elek,
This issue may occur when the column width is larger than the visible area. In this case RadGridView tries to ensure that the current cell is fully visible and it fails. I logged the issue in our issue tracking system and it will be addressed in one of our upcoming releases. I updated your Telerik points for reporting this issue.
You can work around this case by overriding the default EnsureCellVisible method in GridTableElement. Consider the code below:
public class CustomTableView : TableViewDefinition
{
public override IRowView CreateViewUIElement(GridViewInfo viewInfo)
{
return new CustomTableElement();
}
}
public class CustomTableElement : GridTableElement
{
protected override Type ThemeEffectiveType
{
get
{
return typeof(GridTableElement);
}
}
public override bool EnsureCellVisible(GridViewRowInfo rowInfo, GridViewColumn column)