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

[Solved] Double click implementation problem

5 Answers 235 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dario
Top achievements
Rank 1
Dario asked on 13 Aug 2009, 08:45 AM
Hello,
I am trying to implement a double click functionality on the grid row. It is not a problem for me to implement a double click on a row that is not selected, but I just cannot do anything on a row that is already selected, because with next click it goes in the edit mode, and the click event does not fire on my cell any more...
Anther thing: I want to leave the cells editable, but on the double click I want to open a new form.. So I need to catch click event even when the cell is in edit mode...
I hope I made this understandable enough... 
Tnx :)

5 Answers, 1 is accepted

Sort by
0
Accepted
Nedyalko Nikolov
Telerik team
answered on 18 Aug 2009, 06:13 AM
Hi Dario ,

We plan to improve editing mechanism of the RadGridView for the next official release. One of the new features will be a way to customize conditions which will put GridViewCell into edit mode. This setting will allow you to hook for the double click event and do what you need.
I cannot commit with any specific date when this feature will be ready, but as soon as it is finished we will make it public via our "latest internal build" program so stay tuned.

Greetings,
Nedyalko Nikolov
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
Dario
Top achievements
Rank 1
answered on 18 Aug 2009, 06:50 AM
Hi Nedyalko , 
Tnx for your reply, can't wait for a new release :))
0
Hector
Top achievements
Rank 1
answered on 02 Oct 2009, 09:39 PM
I don't want to allow users to go into edit mode for a cell.  How do I prevent them form doing this?
0
Nedyalko Nikolov
Telerik team
answered on 05 Oct 2009, 02:42 PM
Hello Hector,

You can use RadGridView.BeginningEditEvent and to stop editing for a cell by setting arguments.Cancel = true, or mark GridViewDataColumn as read only, or mark RadGridView as read only.
Hope this helps.

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
Hector
Top achievements
Rank 1
answered on 05 Oct 2009, 02:57 PM
Great!  I was already creating the columns individually so I have a function for this and it was very simple.  Here is what I have:
        private GridViewDataColumn CreateColumn(string column, string uniqueVal)  
        {  
            GridViewDataColumn dataColumn = new GridViewDataColumn();  
            dataColumn.Header = column.ToString();  
            dataColumn.Width = new GridLength(column.Length * 12);  
            dataColumn.UniqueName = uniqueVal;  
            dataColumn.IsReadOnly = true;  
            return dataColumn;  
        } 
Tags
GridView
Asked by
Dario
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Dario
Top achievements
Rank 1
Hector
Top achievements
Rank 1
Share this question
or