Eric Belanger
Top achievements
Rank 1
Eric Belanger
asked on 07 Apr 2010, 05:44 PM
Hi,
When we have a nullable bool (bool?) the gridview in display mode displays "true" and "false" instead of the checkbox.
Once i enter in edit mode in the cell, now the check box shows and allows me to click.
I am using an internal build that i installed 2 months ago.
When we have a nullable bool (bool?) the gridview in display mode displays "true" and "false" instead of the checkbox.
Once i enter in edit mode in the cell, now the check box shows and allows me to click.
I am using an internal build that i installed 2 months ago.
6 Answers, 1 is accepted
0
Eric Belanger
Top achievements
Rank 1
answered on 07 Apr 2010, 07:06 PM
I just tried the last internal build and i still have the problem.
0
Hello Eric,
The issue is identified and fixed immediately. The fix will be part of our upcoming latest build this Friday. I've added 2000 Telerik points to your account.
Regards,
Vlad
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.
The issue is identified and fixed immediately. The fix will be part of our upcoming latest build this Friday. I've added 2000 Telerik points to your account.
Regards,
Vlad
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
Eric Belanger
Top achievements
Rank 1
answered on 08 Apr 2010, 04:12 PM
Thank you!
0
Matthew Hudnall
Top achievements
Rank 1
answered on 07 May 2010, 12:15 AM
I'm still seeing this behavior with the 2010.422.35 version of the WPF controls. If you click in the cell with the CheckBox (but not the CheckBox) the CheckBox becomes an editable field with the word "True" or "False." You can edit the word to have the same effect as checking the box, and indeed changing the value and pressing Enter changes it back to a CheckBox in that state. If it matters, the field the CheckBox is bound to is a String. I've attached an image of what the code below produces. Any suggestions?
XAML:
C#:
XAML:
<telerik:RadGridView Name="radGridView1" Width="Auto" Height="Auto" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" AutoGenerateColumns="False" ScrollViewer.VerticalScrollBarVisibility="Visible" ShowGroupPanel="False" CanUserSortColumns="True" CanUserInsertRows="False" CanUserReorderColumns="False" IsFilteringAllowed="False" CanUserResizeColumns="False" FontFamily="Tahoma" ScrollMode="RealTime" AlternationCount="2" telerik:StyleManager.Theme="Office_Black" AreRowDetailsFrozen="False" RowDetailsVisibilityMode="Collapsed" RowIndicatorVisibility="Collapsed" ColumnWidth="*" AllowDrop="False" > |
<telerik:RadGridView.Columns> |
<telerik:GridViewDataColumn HeaderTextAlignment="Center" Header="Selected" IsSortable="False" UniqueName="SELECTED" Width="60"> |
<telerik:GridViewColumn.CellTemplate> |
<DataTemplate> |
<CheckBox Name="chk_Standard" HorizontalAlignment="Center" IsEnabled="True" IsChecked="{Binding SELECTED}" ></CheckBox> |
</DataTemplate> |
</telerik:GridViewColumn.CellTemplate> |
</telerik:GridViewDataColumn> |
<telerik:GridViewDataColumn DataMemberBinding="{Binding TEST1}" HeaderTextAlignment="Center" Header="Test 1" IsVisible="True" IsReadOnly="True" IsSortable="False" UniqueName="TEST1" Width="Auto" DataType="{x:Type System:String}" /> |
<telerik:GridViewDataColumn DataMemberBinding="{Binding TEST2}" HeaderTextAlignment="Center" Header="Test 2" IsVisible="True" IsReadOnly="True" IsSortable="True" UniqueName="TEST2" Width="275*" DataType="{x:Type System:String}" /> |
</telerik:RadGridView.Columns> |
</telerik:RadGridView> |
C#:
private void Window_Loaded ( object sender, RoutedEventArgs e ) |
{ |
DataTable table = new DataTable( ); |
table.Columns.Add( new DataColumn( "SELECTED", typeof ( string ) ) ); |
table.Columns.Add( new DataColumn( "TEST1", typeof( string ) ) ); |
table.Columns.Add( new DataColumn( "TEST2", typeof( string ) ) ); |
for( int x = 0; x < 25; x++ ) |
{ |
table.Rows.Add( "False", "Test1", "Test2" ); |
} |
this.radGridView1.ItemsSource = table.DefaultView; |
} |
0
Matthew Hudnall
Top achievements
Rank 1
answered on 10 May 2010, 08:58 PM
Can someone please address this issue?
0
Hello Matthew Hudnall,
Sorry for the late reply. All you have to do is to change type of the column from string to bool.
I hope this will help.
All the best,
Nedyalko Nikolov
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.
Sorry for the late reply. All you have to do is to change type of the column from string to bool.
//table.Columns.Add( new DataColumn( "SELECTED", typeof ( string ) ) );
table.Columns.Add(
new
DataColumn(
"SELECTED"
,
typeof
(
bool
) ) );
I hope this will help.
All the best,
Nedyalko Nikolov
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.