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

Best way to bind COM data structure to GridView

1 Answer 38 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 27 Mar 2014, 05:08 PM
Hello,

I am pretty new to WPF and Telerik and have a question about data binding.

My business object is a COM object as root of a tree of further COM objects (parent-child hierarchy (any depth)).

How would I bind ideally this data structure to a TreeListView control without duplicating any data with best performance? The columns of the TreeListView control need to be created at runtime based on some XML customization file. Each column displays a particular attribute of the COM object.

My current solution uses a binding via a value converter where I retrieve the correct data (parameter passed to the value converter) from my COM object. It works OK, but has many drawbacks: No out-of-the-box support for sorting, filtering, ... performance could be better ...

Any help on the best way to implement a binding with good performance without duplicating data is very much appreciated.

Thanks,
Markus

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 01 Apr 2014, 11:18 AM
Hello Markus,

You can check our online documentation on TreeListView.  You need to consider using the RadTreeListView for displaying only a homogeneous data. 
You can also check the topic on Performance.
As the RadTreeListView inherits the RadGridView it shares the same API, therefore you can find RadGridView's topic on Populating With Data useful.

Regards,
Didie
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
GridView
Asked by
Markus
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or