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

[Solved] Displaying Checkbox in GridViewDataColumn

5 Answers 217 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Virendra
Top achievements
Rank 1
Virendra asked on 24 Apr 2009, 10:44 AM

Hi,
I have CheckBoxEditor type of GridViewDataColumn, this column displayes the value(True/False) depending upon the checked status the checkbox.

Is there anyway to display, checkbox itself instead of True/False?

Thanks
Virendra.k

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 24 Apr 2009, 11:55 AM
Hello Virendra,

With our latest service pack the grid will display disabled check box. Please check our online examples:
http://demos.telerik.com/silverlight/#GridView/DataSources

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
Virendra
Top achievements
Rank 1
answered on 27 Apr 2009, 06:12 AM
Thanks Vlad.

Only "disabled" checkboxes will be displayed as "checkbox", enabled ones will be displayed as True/False?

i am useing trail version, could you provide me link to download latest SP.

Thanks 
virendra
0
Danny Ellis
Top achievements
Rank 1
answered on 07 Mar 2010, 08:22 PM
I am experiencing the behavior and I don't see a resolution here.  The control set I have downloaded is labeled: RadControls_for_Silverlight_2009_3_1314_DEV_hotfix.

I have also attempted to implement a custom column as shown here.  The value is displayed correctly, but when I change the value and try to obtain it in the code, it is not set.  Any help would be appreciated.

 

 

<telerikGrid:GridViewColumn Header="Friendly" HeaderTextAlignment="Center" Width="85">

 

 

 

<telerikGrid:GridViewColumn.CellStyle>

 

 

 

<Style TargetType="telerikGridView:GridViewCell">

 

 

 

<Setter Property="Template">

 

 

 

<Setter.Value>

 

 

 

<ControlTemplate TargetType="telerikGridView:GridViewCell">

 

 

 

<CheckBox HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding IsFriendly}"></CheckBox>

 

 

 

</ControlTemplate>

 

 

 

</Setter.Value>

 

 

 

</Setter>

 

 

 

</Style>

 

 

 

</telerikGrid:GridViewColumn.CellStyle>

 

 

 

</telerikGrid:GridViewColumn>

 

0
Vlad
Telerik team
answered on 08 Mar 2010, 08:10 AM
Hi,

You may need TwoWay binding for this property - can you check and let me know what will be the result in this case?

All the best,
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
Danny Ellis
Top achievements
Rank 1
answered on 08 Mar 2010, 12:55 PM
That seems to have gotten it. 

Thanks a bunch!

-Danny
Tags
GridView
Asked by
Virendra
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Virendra
Top achievements
Rank 1
Danny Ellis
Top achievements
Rank 1
Share this question
or