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

Creating Viemodel on runtime

1 Answer 44 Views
DataFilter
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 04 Feb 2014, 10:48 AM
Hi,

i use the "RadDataFilter" and a "RadGridView" like your example "DataFilter FirstLook - Orders". The Problem:

I get a Database with <n> Tables and <n> Fields. I don't know how many tables and how many fields/type of field
are in the tables. I could be one table with ten fields or 20 tables with 25 fields. All the fileds in a table could be
defined as text or integer.

Now I want to bind the database to the RadDataFilter and I need to create the viewmodels dynamically? Any
Ideas?

Thanks
best Regard
Rene

1 Answer, 1 is accepted

Sort by
0
ITA
Top achievements
Rank 1
answered on 04 Feb 2014, 03:22 PM
Hi,

I found this solution: http://blogs.msdn.com/b/silverlight_sdk/archive/2011/04/26/binding-to-dynamic-properties-with-icustomtypeprovider-silverlight-5-beta.aspx, but I can't bring my custom properties in the view of the GridView. I can
see the two fix porperties in my GridView (Firstname, Lastname), but the custom properties are not shown!

Can you help me?
Thanks a lot
Best Regards
Rene
Tags
DataFilter
Asked by
ITA
Top achievements
Rank 1
Answers by
ITA
Top achievements
Rank 1
Share this question
or