Problems with custom cell template

2 posts, 0 answers
  1. Mads
    Mads avatar
    25 posts
    Member since:
    Nov 2014

    Posted 06 Jan 2015 Link to this post

    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'."}



  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1218 posts

    Posted 06 Jan 2015 Link to this post

    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.

     
Back to Top