Wrapping GridViewDataColumn

4 posts, 1 answers
  1. Matthias Bibo
    Matthias Bibo avatar
    74 posts
    Member since:
    Mar 2010

    Posted 24 Nov 2011 Link to this post

    Hi,

    Since Q3 we are no longer able to use our wrapped GridColumns. In the past we have wrapped all Rad Controls into our own Controls to make it easy for us to change the default behavior of some controls at any time in the future, fore example overloading the style of a RadGridView or adding standart ContextMenues.

    Our wrapped Controls look something like this:
    public class TestGridViewDataColumn : GridViewDataColumn
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="TestGridViewDataColumn" /> class.
        /// </summary>
        public TestGridViewDataColumn()
        {           
        }
    }

    We use it like this:
    <TestControls:TestGridView Grid.Row="0" IsReadOnly="False" ItemSource="{Binding People}"  >
        <TestControls:TestGridView.Columns>
            <TestControls:TestGridViewDataColumn SortMemberPath="Name" IsReadOnly="True" Header="Name" DataMemberBinding="{Binding Name}" />
            <TestControls:TestGridViewDataColumn IsReadOnly="True" Header="City" DataMemberBinding="{Binding City}" />
        </TestControls:TestGridView.Columns>
    </TestControls:TestGridView.Columns>

    Since Q3 the RadGridView no longer accepts our GridColumn as in the example. We get an Expection that tells us we have to use a Telerik Column.
    Could you please look into this? It is important for use to be able to use our own Controls.

    best regards,
    Tristan
  2. Answer
    Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 24 Nov 2011 Link to this post

    Hello Matthias Bibo,

     

    I have tried to replicate the behavior you described, but with no avail. Can you please take a look at this project and let me know how it differs from yours?  Feel free to modify it and sent it back to us as an attachment in a new support ticket. We may perform some testing by our side and we would be able to provide you with an appropriate solution. 




    All the best,
    Vanya Pavlova
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Matthias Bibo
    Matthias Bibo avatar
    74 posts
    Member since:
    Mar 2010

    Posted 24 Nov 2011 Link to this post

    Hi Vanya Pavlova ,

    I found the problem, it was my error, I was still using our own Style Project. The Style Project is a copy of an older Windows7Theme with some modification from our side.
    After changing the Style to the new Telerik Windows7Theme everything seems to be wokring.

    Sorry for the inconvenience...

    Best regards,
    Matthias
  4. Matthias Bibo
    Matthias Bibo avatar
    74 posts
    Member since:
    Mar 2010

    Posted 24 Nov 2011 Link to this post

    Hi Vanya Pavlova ,

    I found the problem, it was my error, I was still using our own Style Project. The Style Project is a copy of an older Windows7Theme with some modification from our side.
    After changing the Style to the new Telerik Windows7Theme everything seems to be wokring.

    Sorry for the inconvenience...

    Best regards,
    Matthias
Back to Top