This question is locked. New answers and comments are not allowed.
Amit Patel
Top achievements
Rank 1
Amit Patel
asked on 31 Aug 2010, 03:09 PM
I am looking for a feature in a gridview cell that works like excel cell. For example, in excel, I can click on any cell and it would select it, but not go in edit mode but as soon as I start typing it will put that cell in edit mode. In gridview in order to go in edit mode, user would have to double click or click once when EditTriggers set to CellClick, but in either case it still would not work the way excel cell editing works. Is there a way to achieve this? I have gone through forms and have not found anything that would be closely promising.
Thanks,
Amit
Thanks,
Amit
5 Answers, 1 is accepted
0
Hi Amit Patel,
Sorry for the late answer.
This feature is in our TODO list (already with high priority), so we will introduce it very soon (in a week or two). As soon as this feature is ready we will make it public via latest internal build program so stay tuned.
Kind regards,
Nedyalko Nikolov
the Telerik team
Sorry for the late answer.
This feature is in our TODO list (already with high priority), so we will introduce it very soon (in a week or two). As soon as this feature is ready we will make it public via latest internal build program so stay tuned.
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
0
Santhosh
Top achievements
Rank 1
answered on 02 Nov 2010, 04:35 PM
Please let us know when it is ready
0
Hello Santhosh,
Nedyalko Nikolov
the Telerik team
This feature is available with the latest internal build and 2010.Q3.beta releases. We've create new EditTrigger - TextInput which is set by default and could be controlled via RadGridView.EditTriggers or GridViewDataColumn.EditTriggers property.
Let me know how it works on your end.
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
0
Juliana
Top achievements
Rank 1
answered on 25 Feb 2011, 01:55 PM
Hello,
I set up EditTriggers="TextInput" and cell does go into edit mode when I start typing. But I also want excel-like behaviour when Delete key is clicked: clear current cell value when hit delete. I overload Deleting event of gridview like
var item = e.Items.FirstOrDefault();
(this.DataContext as viewModel).ClearCellValue(item, e.DataControl.CurrentColumn.UniqueName);
e.Cancel = true;
It helps to clear the cell but focus rectangle jumps to the first row. And when I start typing, a wrong cell goes into edit mode.
What am I doing wrong? What is the natural way do clearing cell value when EditTriggers="TextInput" (without typing smth and then hit Delete)?
Thanks,
Juliana
I set up EditTriggers="TextInput" and cell does go into edit mode when I start typing. But I also want excel-like behaviour when Delete key is clicked: clear current cell value when hit delete. I overload Deleting event of gridview like
var item = e.Items.FirstOrDefault();
(this.DataContext as viewModel).ClearCellValue(item, e.DataControl.CurrentColumn.UniqueName);
e.Cancel = true;
It helps to clear the cell but focus rectangle jumps to the first row. And when I start typing, a wrong cell goes into edit mode.
What am I doing wrong? What is the natural way do clearing cell value when EditTriggers="TextInput" (without typing smth and then hit Delete)?
Thanks,
Juliana
0
Hi Santhosh,
Nedyalko Nikolov
the Telerik team
In order to achieve this you should override KeyboardCommandProvider like demonstrated in this blog post, because Delete key also select another item (selected item is deleted). Then you could change the value of the underlying business object (which should implement INotifyPropertyChanged) and RadGridView will reflect the change.
Greetings,Nedyalko Nikolov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!