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

Managing grouping and filtering when binding to IDictionary

3 Answers 55 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Daniele
Top achievements
Rank 1
Daniele asked on 12 Aug 2010, 10:18 AM
Hi,

I evaluated solution described in the following link to bind data from a IDictionary object in TwoWay mode.
Seems everything is working fine, including sorting, but I cannot let grouping and filtering working because items are not bound to a real property, but to an object, which is then accessed through its indexer through a converter.
Is there a way to support these features?
I evaluated a custom data table also, but I need two way binding features as the grid is in edit mode.

Thanks.

http://www.codeproject.com/Articles/36497/Binding-a-Silverlight-DataGrid-to-dynamic-data-via.aspx


3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 12 Aug 2010, 12:23 PM
Hello Daniele,

Generally you should not have problems with latest version of our DataTable and TwoWay bindings. 

Kind regards,
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
Daniele
Top achievements
Rank 1
answered on 12 Aug 2010, 01:28 PM
I downloaded example associated to the DataTable and tried to generate GridView columns with two way binding, but I was not able to see changed values.
I had a look to the solution and I did not find any INotifyPropertyChanged implementation.
So, I guess there's no two way binding support.
Can you please give me a working example of that?

I generated grid view columns as follows:

<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn Header="ID" DataMemberBinding="{Binding ID, Mode=TwoWay}"></telerik:GridViewDataColumn>
<telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name, Mode=TwoWay}"></telerik:GridViewDataColumn>
<telerik:GridViewDataColumn Header="UnitPrice" DataMemberBinding="{Binding UnitPrice, Mode=TwoWay}"></telerik:GridViewDataColumn>
</telerik:RadGridView.Columns>


Thanks.
Regards,
Daniele.
0
Vlad
Telerik team
answered on 12 Aug 2010, 02:15 PM
Hello Daniele,

 Have you checked DynamicObject implementation? Please make sure that you've downloaded our DataTable from this link.

Sincerely yours,
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
Tags
GridView
Asked by
Daniele
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Daniele
Top achievements
Rank 1
Share this question
or