Creating Viemodel on runtime

2 posts, 0 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 04 Feb 2014 Link to this post

    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
  2. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 04 Feb 2014 in reply to ITA Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top