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

GridCheckBoxColumn shows up empty.

1 Answer 56 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tormod
Top achievements
Rank 2
Tormod asked on 01 Mar 2012, 12:03 PM
Hi.

<

telerik:RadGridView.RowDetailsTemplate>

<DataTemplate>

     <telerik:RadGridView Margin="4,5,5,4" ShowColumnFooters="False" ShowGroupPanel="False" AutoGenerateColumns="False" ShowInsertRow="False" ItemsSource="{Binding IoTerminals}">

     <telerik:RadGridView.Columns>

         <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}"/>

        <telerik:GridViewCheckBoxColumn Header="Simulated" DataMemberBinding="{Binding Simulated}"/>

         <telerik:GridViewCheckBoxColumn Header="Sim is possible" DataMemberBinding="{Binding SimPossible}" />

    </telerik:RadGridView.Columns>

    </telerik:RadGridView>

</DataTemplate>

</telerik:RadGridView.RowDetailsTemplate>

(Edit: I have made two edits on this post to try to make the above xaml look approachable, but to little avail)

The two Checkbox columns shows up empty. In the debugger I see that the property "SimPossible" is executed correctly and that it return "true". The "Name" column shows the correct value (boolean True).
If I change AutoGenerateColumns to True, then the additional generated columns shows correct value (and checked status).
No binding error is displayed in the debugger output window.

Is there any further parameterization necessary to map boolean "True" to display checked status? Do I need a value converter?

As you can see, this is in the rowdetails section of another GridView (in case that is relevant).

(New Info : Replacing the GridViewCheckBoxColumn with regular GridViewDataColumn is displayed correctly)

I use Q1 2012.

 

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 02 Mar 2012, 10:45 AM
Hi,

 Thank you for the detailed description - I have tested the described scenario and ,indeed, there was such a problem when using the official release. The problem was resolved and if you use the assemblies from the latest internal build, then your code should work as expected.

Please let me know if you can encounter any problems using the latest binaries.

Regards,
Didie
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
GridView
Asked by
Tormod
Top achievements
Rank 2
Answers by
Dimitrina
Telerik team
Share this question
or