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

Problems with custom cell template

1 Answer 60 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mads
Top achievements
Rank 1
Mads asked on 06 Jan 2015, 09:18 AM
I am trying to create a custom filter tool for a group of texts

I have the following XAML http://pastebin.com/h41fjb9J and codebehind is http://pastebin.com/PTd48bJZ and my custom type is http://pastebin.com/LFnGynbz

What I dont understand is that if I have 
                    <telerik:GridViewDataColumn
                        DataMemberBinding="{Binding Path=Checked}"/>
                    <telerik:GridViewDataColumn
                        IsReadOnly="True"
                        DataMemberBinding="{Binding Path=Text}"/>

Then it works but its ugly as I want to it look exactly like the 
<CheckBox Content="{x:StaticExtension localization:SemenBucketTexts.SelectAll}" Click="SelectAll" />
above with no borders or headers

If I then try to create a custom celltemplate 

                    <telerik:GridViewDataColumn>
                        <telerik:GridViewDataColumn.CellTemplate>
                            <DataTemplate>
                                <CheckBox Checked="{Binding Path=Checked}" Content="{Binding Text}"/>
                            </DataTemplate>
                        </telerik:GridViewDataColumn.CellTemplate>
                    </telerik:GridViewDataColumn>

I get an exception 
InnerException = {"Unable to cast object of type 'System.Reflection.RuntimeEventInfo' to type 'System.Reflection.MethodInfo'."}



1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 06 Jan 2015, 05:13 PM
Hi,

Please, let us carry out any further communication on this matter in the other thread that you have opened, so that we can maintain consistent dialogue. I will close this thread for now

Regards,
Ivan Ivanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
Mads
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or