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

Binding Error when setting UniqueName

1 Answer 42 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Zack
Top achievements
Rank 1
Zack asked on 18 Mar 2010, 03:59 PM
Hi,

I have a strange situation, not sure if this is by design.

my xaml for a column looks like this.

<telerikGridView:GridViewDataColumn Header="col 1" DataMemberBinding="{Binding Converter={StaticResource myConverter}, ConverterParameter='col1'}" UniqueName="col1" />

Now in my converter I expect to get my full business object (I am bound to a List<T>) but I get the value of the property col1.

If I remove the UniqueName I get the whole business object.

I need to set the UniqueName for later use and I need the whole business object to go to the converter.

Any help most welcome.

Tks
Zack

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 19 Mar 2010, 09:07 AM
Hello Zack,

Do it like this and it will work:

<telerikGridView:GridViewDataColumn Header="col 1" DataMemberBinding="{Binding Path=., Converter={StaticResource myConverter}, ConverterParameter='col1'}" UniqueName="col1" />

I've attached a sample project. We will fix this behavior for an upcoming release so that it will work the way you have specified it as well.

I hope this helps.

Sincerely yours,
Ross
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
Zack
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or