This question is locked. New answers and comments are not allowed.
Hello,
Why is this piece of code not working in datagridview.columns?
<telerik:GridViewDataColumn DataMemberBinding="{Binding Converter={StaticResource fullNameConverter} }"/>
fullNameConverter is a converter which is bound to DataContext (which is of type Customer). But in Converter I get the type as DynamicClass1. Don't know what funny thing is Telerik doing here.
How do i solve this issue?
Why is this piece of code not working in datagridview.columns?
<telerik:GridViewDataColumn DataMemberBinding="{Binding Converter={StaticResource fullNameConverter} }"/>
fullNameConverter is a converter which is bound to DataContext (which is of type Customer). But in Converter I get the type as DynamicClass1. Don't know what funny thing is Telerik doing here.
How do i solve this issue?
4 Answers, 1 is accepted
0
Hello,
Vlad
the Telerik team
You've missed to specify Path for your binding. In this case the cell will show your data item type - the DynamicClass1 most probably comes from our DataTable.
Vlad
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Ankit
Top achievements
Rank 1
answered on 18 Apr 2011, 03:26 PM
Hi Vlad, I haven't missed Path property. I want to bind it to my DataContext which is why i have omitted Path property. How do i solve this? I don't want dynamicclass. Where did my DataContext go?
0
Ankit
Top achievements
Rank 1
answered on 24 Apr 2011, 03:24 PM
Any reply Vlad? 1 week passed.
0
Hello Rathod Ankit,
The type you get inside the convert method of course depends on what kind of data you use as ItemsSource for RadGridView. Maybe you can share some info on what are you binding RadGridView to ?
Kind regards,
Pavel Pavlov
the Telerik team
The type you get inside the convert method of course depends on what kind of data you use as ItemsSource for RadGridView. Maybe you can share some info on what are you binding RadGridView to ?
Kind regards,
Pavel Pavlov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
