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

Selection in RadGridView's Checkbox cell

4 Answers 111 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ravi
Top achievements
Rank 1
Ravi asked on 27 Nov 2012, 01:34 PM
Hi There,

We have  checkbox column in RadGridview for checking the checkbox we need to click three times on the cell. we want to select the check box in a single click or may be with double click is ok.
Can you please help me to achieve this. we are getting many requests from our customers to have this feature.

Thanks in advance,,
Srinivas.

4 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 27 Nov 2012, 02:06 PM
Hello Srinivas,

I would recommend you to check our online documentation where a solution to this situation was already suggested.

Regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Ravi
Top achievements
Rank 1
answered on 28 Nov 2012, 04:09 AM
Hi Didle,
Thank you so much for your quick reply, i have gone through the link and its very useful for me.

Best Regards,
Srinivas.
0
Ravi
Top achievements
Rank 1
answered on 28 Nov 2012, 11:46 AM
Hi Didle,

We have n number of RadGridViews in our project,and it will be better if we can create a common style for the checkboxcolumn,. so is there any way to create style for this column especially implicit, which will automatically apply to the all checkbox columns ?

I am not able add the property to the below style, can you help please
<Style TargetType="{x:Type telerik:GridViewCheckBox}">
            
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type telerik:GridViewCheckBox}">
                        <Grid HorizontalAlignment="Left" Height="13" VerticalAlignment="Center" Width="13">
                            <Border BorderBrush="Black" BorderThickness="1">
 
                                <Border BorderBrush="Gray" BorderThickness="1" Background="#FFE0E0E0">
                                    <Grid Margin="0">
                                        <Path x:Name="IndeterminatePath" Data="M14.708333,144.5L20.667,144.5" HorizontalAlignment="Center" Height="7" Margin="0" Stretch="Fill" Stroke="#FF0E0C0C" StrokeThickness="1.5" Visibility="Collapsed" VerticalAlignment="Center" Width="7"/>
                                        <Path x:Name="CheckedPath" Data="M32.376187,77.162509L35.056467,80.095277 40.075451,70.02144" HorizontalAlignment="Center" Margin="0" Stretch="Fill" Stroke="Black" StrokeThickness="1.5" Visibility="Collapsed" VerticalAlignment="Center"/>
                                    </Grid>
                                </Border>
                            </Border>
 
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsChecked" Value="True">
                                <Setter Property="Visibility" TargetName="CheckedPath" Value="Visible"/>
                            </Trigger>
                            <Trigger Property="IsThreeState" Value="True">
                                <Setter Property="Visibility" TargetName="IndeterminatePath" Value="Visible"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>


Thanks again for your precious help.

Srinivas.
0
Dimitrina
Telerik team
answered on 29 Nov 2012, 03:42 PM
Hi Srinivas,

Do you want to style the CheckBox Column in View mode or in Edit mode?

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Ravi
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Ravi
Top achievements
Rank 1
Share this question
or