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

Custom GridViewColumn

1 Answer 196 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jan Terje
Top achievements
Rank 1
Jan Terje asked on 16 Jan 2017, 12:40 PM

Hi

 

I am trying to create my own custom column based on GridViewBoundColumnBase to use with RadGridView.

When using a column like GridViewDataColumn intellisense knows that the Binding in DataMemberBinding uses the context of an item specified in its parents RadGridView's ItemsSource. This gives me the proper suggestions from intellisense to bind to.

With my custom column I am unable to replicate this behavior. I only inherit the datacontext from the parent RadGridView. How can I get around this?

(PS: I need to create a custom column, I do not want to set the DataTemplate of GridViewColumn specifically for every table)

1 Answer, 1 is accepted

Sort by
0
Jan Terje
Top achievements
Rank 1
answered on 17 Jan 2017, 09:17 AM

I have now tried to do the same in the normal DataGrid and this one works differently.

I am not satisfied with my solution there either, but at least in DataGrid I am able to create a functional column.

 

For the telerik column the dependency properties are not even being set, and thus line 14 triggers.

Please have a look and let me know how this is possible to achieve with Telerik!

 

Telerik GridView : http://pastebin.com/JCR1EaaX

DataGrid : http://pastebin.com/3N153d6w

 

Tags
GridView
Asked by
Jan Terje
Top achievements
Rank 1
Answers by
Jan Terje
Top achievements
Rank 1
Share this question
or