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

check GridViewCheckBoxColumn with one click

6 Answers 1119 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Matthias
Top achievements
Rank 1
Matthias asked on 16 May 2011, 03:57 PM
Hi all,

I'm trying to do a quite simple thing: I simply want to check or uncheck checkboxes in a Gridview with one click.
At the moment I need 3 clicks to do this. (I think one to select the row, one to switch the cell to edit mode and finally one to check or uncheck)

Is it possible to reduce this to just one click?

Regards,
Matthias

6 Answers, 1 is accepted

Sort by
0
Accepted
Vanya Pavlova
Telerik team
answered on 16 May 2011, 04:00 PM
Hi Matthias,

 
You may take a look at the following online help article "Number of clicks in the CheckBox column".

Kind regards,
Vanya Pavlova
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
Matthias
Top achievements
Rank 1
answered on 17 May 2011, 09:59 AM
Hi,

the one-click-solution with EditTriggers="CellClick" and AutoSelectOnEdit="True" didn't work for me. I still have to click two times. But the other solution with a Checkbox in a GridViewDataColumn did exactly what I want.

Thanks!
0
Chandra Prakash
Top achievements
Rank 2
answered on 20 Jun 2011, 06:40 PM
Hi Vanya,

I am using GridViewCheckBoxColumn in RadGridView. I wanna System.Windows.Controls checkbox in GridViewCheckBoxColumn and surely this happening when I make style of GridViewCheckBox and set key of Standard Silverlight checkbox on GridViewcheckboxColumn as Style="{StaticResource CheckBoxStyle}".
But somewhere I am not using GridViewCheckBoxColumn or not GridViewDataColumn. Using bool property in c# for the IsEmployee column. There should be silverlight Standard CheckBox instead of GridViewCheckBox exactly what I want. For that Which style I am missing or what should I have to do?

Thanks,
Prakash Gupta
INDIA
0
Vanya Pavlova
Telerik team
answered on 20 Jun 2011, 06:50 PM
Hello Chandra,


You may style the standard CheckBox control direclty through using the Telerik's StyleManager:

<CheckBox telerik:StyleManager.Theme="Office_Black" ...../>


If your columns are auto-generated, you may subscribe to the RadGridView's AutoGenerating event in order to access these columns. From there just set the appropriate CellTemplate with the desired CheckBox and its corresponding appearance.

Regards,
Vanya Pavlova
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
Chandra Prakash
Top achievements
Rank 2
answered on 21 Jun 2011, 04:54 PM
Hi Vanya,

Thanks for your quick reply. In my case columns are generated from code and columns definition also comes on run time. So I can't set Cell Template. In this case when property with bool comes it takes column with checkbox, For this check box I want to apply Standard silverlight checkbox style instead of GridViewCheckBoxColumn Style. How can I overrite it??

Thanks
Prakash Gupta
INDIA
0
Vanya Pavlova
Telerik team
answered on 21 Jun 2011, 04:58 PM
Hi Chandra Prakash,

 

The logic behind GridViewCheckBoxColumn/GridViewDataColumn is internally handled and there is no easy way to change this behavior. The easiest way to handle this is through defining CellTemplate with the appropriate CheckBox control. 


All the best,
Vanya Pavlova
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
Tags
GridView
Asked by
Matthias
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Matthias
Top achievements
Rank 1
Chandra Prakash
Top achievements
Rank 2
Share this question
or