disable radgridview double click

1 Answer 165 Views
GridView
mh
Top achievements
Rank 1
mh asked on 03 Apr 2022, 07:33 AM

Hi

I have a checkbox as a cell in one of my gridviews. if you double click it, the chech box  will hides.

how can I disable double click , to prevent hiding the checkbox?

I tried:

setting e.handled to true  in "PreviewMouseDoubleClick" but did not work(still hides)

 



<telerik:GridViewDataColumn>

<telerik:GridViewColumn.CellTemplate>

<DataTemplate>
<CheckBox>
#close tags#

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 04 Apr 2022, 06:22 AM

Hello,

Double clicking on the cell will start its edit mode, which means that another UI element will be loaded. To prevent this, you can set the EditTriggers property of the column or the same property of RadGridView to None (or to another trigger if you prefer).

<telerik:GridViewDataColumn EditTriggers="None">

or

<telerik:RadGridView EditTriggers="None"/>

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

mh
Top achievements
Rank 1
commented on 04 Apr 2022, 07:33 AM

thanks. that worked
Tags
GridView
Asked by
mh
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or