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

Replacement for CellRequestBringIntoView

6 Answers 35 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sean O'Dea
Top achievements
Rank 1
Sean O'Dea asked on 09 Dec 2009, 07:15 PM
 CellRequestBringIntoView says its obsolete.  What is its replacement?  I'm using it to automatically enter edit mode.

6 Answers, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 10 Dec 2009, 01:24 PM
Hello Sean O'Dea,

Actually there is no replacement to this event. Can you provide me with more detailed information about your scenario? I'm sure that we will be able to solve the problem.


Greetings,
Nedyalko Nikolov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Sean O'Dea
Top achievements
Rank 1
answered on 10 Dec 2009, 04:12 PM
I have several TextBox's above a RadGridView.  In the RadGridView I have several columns that are not Focusable.  When tabbing from the TextBox into the RadGridView I want the first editable cell to go into edit mode.
0
Nedyalko Nikolov
Telerik team
answered on 14 Dec 2009, 08:24 PM
Hello Sean O'Dea,

You can use RadGridView.CurrentCellChanged event to meet your goals, actually when GridViewCell become current it automatically scrolls into view.

Kind regards,
Nedyalko Nikolov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Sean O'Dea
Top achievements
Rank 1
answered on 14 Dec 2009, 10:12 PM
The cell becomes current but does not go immediately into edit mode.  I want the first editable cell to go into edit mode when the RadGridView comes in focus.
0
Nedyalko Nikolov
Telerik team
answered on 17 Dec 2009, 12:29 PM
Hello Sean O'Dea,

Please try the following code snippet and let me know how it works on your end.

void radGridView_GotFocus(object sender, RoutedEventArgs e)
{
     GridViewDataControl gridView = sender as GridViewDataControl;
     if (gridView != null)
     {
         gridView.BeginEdit();
     }
}

P.S. Of course you have to subscribe for the GotFocus event of RadGridView.


Greetings,
Nedyalko Nikolov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Sean O'Dea
Top achievements
Rank 1
answered on 17 Dec 2009, 05:31 PM
That works.  Thank you.
Tags
GridView
Asked by
Sean O'Dea
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Sean O'Dea
Top achievements
Rank 1
Share this question
or