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

Edit mode

3 Answers 272 Views
GridView
This is a migrated thread and some comments may be shown as answers.
FilipN
Top achievements
Rank 1
FilipN asked on 31 Jul 2009, 10:55 AM
Hello,
I am testing Edit modes on RadGridView and I found the feature quite counterintuitive, please correct me if I am wrong.

Here is a work flow:
1) I select cell - it goes to edit mode as expected - then I press escape and the cell escapes edit mode.
2) now I move with my cursor to different row, the cell is still out of edit mode
3) however when I select row on the same row as in step 2 I am suddenly in edit mode again.

3 Answers, 1 is accepted

Sort by
0
Accepted
Jack
Telerik team
answered on 31 Jul 2009, 01:50 PM
Hello FilipN,

Thank you for contacting us. You are correct. Currently RadGridView starts editing a cell when clicking on a current row. So, you should first make the row current, and clicking a second time on the same row will start the editing process. We plan to extend our selection mechanism in future, so please share your ideas with us. We will take them in consideration when developing our next versions.

Should you have any other questions, don't hesitate to write back.

Sincerely yours,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Fakhru
Top achievements
Rank 2
answered on 07 Aug 2009, 01:03 PM
I want EDIT Grid when just pressing F2 key only,
I have setting RadGrid to only allow editing when F2 key is pressed.

But when I click row, it always into EDIT mode.
Did I miss something ?


Best Regards,
Fakhru Rahman
0
Jack
Telerik team
answered on 07 Aug 2009, 01:51 PM
Hi Fakhru,

Thank you for this clarification.

You can achieve this behavior by setting the BeginEditMode property to BeginEditProgrammaticaly and change the grid behavior. Please consider the code snippet below:

this.radGridView1.BeginEditMode = RadGridViewBeginEditMode.BeginEditProgrammatically; 
this.radGridView1.GridBehavior = new MyGridBegavior(); 
 
public class MyGridBegavior : BaseGridBehavior 
    protected override bool ProcessF2Key(KeyEventArgs keys) 
    { 
        if (this.GridControl.BeginEdit()) 
        { 
            return true
        } 
        return base.ProcessF2Key(keys); 
    } 

I hope this helps. If you have more questions, I will be glad to help.

All the best,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
FilipN
Top achievements
Rank 1
Answers by
Jack
Telerik team
Fakhru
Top achievements
Rank 2
Share this question
or