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

Wrapping GridViewDataColumn

3 Answers 73 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Matthias Bibo
Top achievements
Rank 1
Matthias Bibo asked on 24 Nov 2011, 03:15 PM
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

3 Answers, 1 is accepted

Sort by
0
Accepted
Vanya Pavlova
Telerik team
answered on 24 Nov 2011, 04:03 PM
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 >>

0
Matthias Bibo
Top achievements
Rank 1
answered on 24 Nov 2011, 04:22 PM
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
0
Matthias Bibo
Top achievements
Rank 1
answered on 24 Nov 2011, 04:22 PM
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
Tags
GridView
Asked by
Matthias Bibo
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Matthias Bibo
Top achievements
Rank 1
Share this question
or