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

[Solved] Cell selection takes two clicks

4 Answers 134 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.
Mike McDougall
Top achievements
Rank 1
Mike McDougall asked on 02 Oct 2009, 09:18 PM
When trying to edit in the grid I have to click the cell twice before I can get focus and editability? How do I configure the grid to allow me to single click to get focus in the editor?

Thanks,
Mike

4 Answers, 1 is accepted

Sort by
0
Accepted
Nedyalko Nikolov
Telerik team
answered on 05 Oct 2009, 02:06 PM
Hi Mike McDougall,

There is EditTriggers property both for RadGridView and GridViewDataColumn which can be used to customize edit behavior in a way like this:

<telerik:RadGridView x:Name="radGridView" EditTriggers="Default, CellClick" .../> 

This code snippet will enable single click to put GridViewCell into edit mode.

P.S. This property is available with the latest internal build assemblies.

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
normalham2
Top achievements
Rank 1
answered on 19 Oct 2009, 10:17 PM
I'm using this property, but what if I have a CellEditTemplate how do I get focus into the control then?  Inside a combobox lets say.

Thanks,
Todd

Edit:  I found my answer in this post:  http://www.telerik.com/community/forums/silverlight/gridview/how-to-focus-control-in-celledittemplate-without-mouse-usage.aspx

Sorry, I'm good.

0
Vlad
Telerik team
answered on 20 Oct 2009, 05:58 AM
Hi Todd,

You can use Loaded event of the control inside CellEditTemplate to achieve your goal. Please check this demo for more info:

http://demos.telerik.com/silverlight/beta/#GridView/CellEditTemplate

Greetings,
Vlad
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
normalham2
Top achievements
Rank 1
answered on 20 Oct 2009, 06:01 AM
Thank you so much Vlad, I'm sorry I did not edit my question in time.
Tags
GridView
Asked by
Mike McDougall
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
normalham2
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or