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

Typing EditTrigger

4 Answers 84 Views
GridView
This is a migrated thread and some comments may be shown as answers.
MiddleTommy
Top achievements
Rank 1
MiddleTommy asked on 12 Nov 2009, 05:16 PM
1) Is there a way to have the currentcell enter edit mode when the user starts typing input?

2) Is there a way to move to the next column when the user presses enter?

4 Answers, 1 is accepted

Sort by
0
MiddleTommy
Top achievements
Rank 1
answered on 13 Nov 2009, 12:55 AM
Well I solved #2 by using the keydown event to simulate Tab when Enter is pressed
        void Enter_KeyDown(object sender, KeyEventArgs e) 
        { 
            if (e.Key == System.Windows.Input.Key.Enter) 
            { 
                e.Handled = true
                FocusNavigationDirection focusDirection = FocusNavigationDirection.Next; 
                TraversalRequest request = new TraversalRequest(focusDirection); 
                UIElement elementWithFocus = Keyboard.FocusedElement as UIElement; 
                // Change keyboard focus. 
                if (elementWithFocus != null
                    elementWithFocus.MoveFocus(request); 
            } 
        } 
 
This code was not my invention. I found it on the internet but forget where.
0
Nedyalko Nikolov
Telerik team
answered on 16 Nov 2009, 02:30 PM
Hello TWT,

This feature (EditTrigger when user starts typing) is in our TODO list. I cannot commit with any specific date or release, when this feature is ready we will make it public via our latest internal build program, so stay tuned.

Indeed solution for the second problem is very nice and helpful.

Best wishes,
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
MiddleTommy
Top achievements
Rank 1
answered on 23 Mar 2010, 06:37 PM
Any news on the begin edit when you start typing on the current cell feature?
0
Nedyalko Nikolov
Telerik team
answered on 24 Mar 2010, 03:06 PM
Hi TWT,

This feature is not available out of the box, since we faced some issues with Silverlight 3. We are doing our best to introduce this for the official SL 4 version (of course for WPF too). Meanwhile you can use the approach demonstrated in the attached example.

Kind regards,
Nedyalko Nikolov
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
MiddleTommy
Top achievements
Rank 1
Answers by
MiddleTommy
Top achievements
Rank 1
Nedyalko Nikolov
Telerik team
Share this question
or