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
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.
<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>
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.
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,
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.
Maya
the Telerik team
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 ..
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 ..