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

DynamicClass issue in Converter using GridViewDataColumn

4 Answers 38 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ankit
Top achievements
Rank 1
Ankit asked on 17 Apr 2011, 07:40 PM
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?

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 18 Apr 2011, 06:22 AM
Hello,

 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

Best wishes,
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
Pavel Pavlov
Telerik team
answered on 25 Apr 2011, 12:18 PM
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
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
Tags
GridView
Asked by
Ankit
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Ankit
Top achievements
Rank 1
Pavel Pavlov
Telerik team
Share this question
or