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

RadGrid + Double click to select Radion button / Checkbox

9 Answers 310 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nikhil
Top achievements
Rank 1
Nikhil asked on 30 Jun 2009, 05:05 PM
Hi ,
I have two Templeate columns in My Grid one is Radiobutton col and other is CheckBox Column,....To select / Unslect a checked box(or radio button) I have to click twice on that cell ,,,this behaviour is very irritating ,,,,is there a way that in a single click used can check / uncheck the Checkbox(or Radio button )

I am sure this must be very simple and i will be missing somethign ,,,experts please guide
Regards
Nikhil

9 Answers, 1 is accepted

Sort by
0
Nikhil
Top achievements
Rank 1
answered on 30 Jun 2009, 05:47 PM
I have version  2009.1.526.1020 for Telerik.Windows.Controls.GridView on my machine ,,, and I believe that this is the latest version
0
Vlad
Telerik team
answered on 01 Jul 2009, 05:32 AM
Hello Nikhil,

Can you post the grid XAML?

Best wishes,
Vlad
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
Nikhil
Top achievements
Rank 1
answered on 01 Jul 2009, 02:19 PM
Please find below Grid XAML haviing RadioButton Control as Template Column

     <StackPanel Grid.Row="6" Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0,35,0,0" Width="1100" >

                               <twcgv:RadGridView x:Name="RadGridView1"
                               IsReadOnly="True" 
                               RowIndicatorVisibility="Collapsed"
                               AutoGenerateColumns="False"
                               CanUserFreezeColumns="False"
                               CanUserReorderColumns="False"
                               ColumnsWidthMode="None"
                               ColumnBackground="white"
                                             
                               ScrollMode="Deferred"
                               UseAlternateRowStyle="True" 
                               MultipleSelect="False"
                               FontSize="10"
                               MaxWidth="1060"
                               MinWidth="1060"
                               MinHeight="190"
                               MaxHeight="190"
                               Margin ="0,-30,0,0"
                               Style="{StaticResource BPRadGridViewStyle}"
                               RowStyle="{StaticResource RowStyle}"
                               AlternateRowStyle="{StaticResource RowStyle_Alternate}"
                               DataLoaded="RadGridView1_DataLoaded"
                                                              
                               >

                                    <twcgv:RadGridView.Columns  >
                                        <twcgv:GridViewColumn UniqueName="">
                                            <twcgv:GridViewColumn.CellTemplate>
                                                <DataTemplate>
                                                    <RadioButton   Checked="RadioButton_Checked"  MaxWidth="20" MinWidth="20"   />
                                                </DataTemplate>
                                            </twcgv:GridViewColumn.CellTemplate>
                                        </twcgv:GridViewColumn>

                                        <twcgv:GridViewDataColumn HeaderText="PO#" UniqueName="PONumber" Width="90" />
                                        <twcgv:GridViewDataColumn HeaderText="Vendor Name" UniqueName="VendorName" Width="220" />
                                        <twcgv:GridViewDataColumn HeaderText="Description" UniqueName="MaterialDescription" Width="210" />
                                        <twcgv:GridViewDataColumn HeaderText="Requested Date" UniqueName="RequestedDate" Width="220" />
                                        <twcgv:GridViewDataColumn HeaderText="Plant Name" UniqueName="PlantName" Width="220"/>

                                    </twcgv:RadGridView.Columns>

                                </twcgv:RadGridView>
                            </StackPanel>

 



0
Nedyalko Nikolov
Telerik team
answered on 03 Jul 2009, 07:20 AM
Hello Nikhil,

I've just tested your case with latest binaries and everything works fine on my end.
I'm attaching a sample project with 2009.Q1.SP2 binaries for your reference.
Hope this helps.

All the best,
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
Naseem
Top achievements
Rank 1
answered on 24 Nov 2010, 05:58 AM
Hi,

I'm using  Q2 2010 SP2 ,it's really strange that it doesn't contain the MouseDoubleClickEvent ! The Telerik.Windows.Controls.GridView version which I'm using is 2010.2.924.1040 .

I have tried your sample application and It's working fine because it's pointing to a Dll in application Libs folder that has got different version (2009.3.1103.1030). Your post is for 2009 and the telerik version I'm using is for 2010 , how come it doesn't contain the event?!

Would you please guide me what I should do.

Thank you,
0
Maya
Telerik team
answered on 24 Nov 2010, 07:55 AM
Hi Naseem,

The sample project and the binaries refer to the RadControls for Silverlight 3, while you are using those for Silverlight 4. You may take a look at this demo demonstrating how to handle DoubleClick event in RadGridView with the version you are using.

Best wishes,
Maya
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Naseem
Top achievements
Rank 1
answered on 24 Nov 2010, 11:35 PM
Thank you so much for the quick reply
0
Hash
Top achievements
Rank 1
answered on 20 Jul 2011, 06:15 PM
I am also facing the same problem.. all i am doing is.. i am showing checkboxes in 3 columns..

Problem 1: 

When i am binding a CollectionView to the Rad Grid (WPF) by default the first row is getting selected. how can we over come this problem..

Problem 2:

if i create the column using GridViewColumn.CellTemplate , How can i do sorting for that column.

Problem 3:

What should i do to display a message when binding collection is empty.

Thanks ..
0
Hash
Top achievements
Rank 1
answered on 21 Jul 2011, 05:24 AM
I am also facing the same problem.. all i am doing is.. i am showing checkboxes in 3 columns..

Problem 1:

When i am binding a CollectionView to the Rad Grid (WPF) by default the first row is getting selected. how can we over come this problem..

Problem 2:

if i create the column using GridViewColumn.CellTemplate , How can i do sorting for that column.

Problem 3:

What should i do to display a message when binding collection is empty.

Thanks ..
Tags
GridView
Asked by
Nikhil
Top achievements
Rank 1
Answers by
Nikhil
Top achievements
Rank 1
Vlad
Telerik team
Nedyalko Nikolov
Telerik team
Naseem
Top achievements
Rank 1
Maya
Telerik team
Hash
Top achievements
Rank 1
Share this question
or