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

New row - how remain focus?

1 Answer 89 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Robert Stuczynski
Top achievements
Rank 1
Robert Stuczynski asked on 30 Apr 2010, 09:41 AM
I recorded vidoe - it explain my problem

Video explain - please watch first

I need remain focus in "New row" when I click button on my form. But when i do it new row is moving to grid :(
Could you help me?

1 Answer, 1 is accepted

Sort by
0
Svett
Telerik team
answered on 05 May 2010, 11:49 AM
Hello Robert,

You can turn off this behavior by overriding the OnValidating method of RadGridView. You need to extend the existing control by defining your own class that derives from the RadGridView class:

public class RadGridViewEx : RadGridView
{
    protected override void OnValidating(CancelEventArgs e)
    {
 
    }
 
    public override string ThemeClassName
    {
        get
        {
            return typeof(RadGridView).FullName;
        }
        set
        {
            base.ThemeClassName = value;
        }
    }
}

The issue that is caused when you press enter to select an item in the combo box editor has been addressed and will be available in the upcoming service pack which will be released this week.

All the best,
Svett
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Robert Stuczynski
Top achievements
Rank 1
Answers by
Svett
Telerik team
Share this question
or