Binding to a collection

2 posts, 0 answers
  1. Mats
    Mats avatar
    1 posts
    Member since:
    Oct 2012

    Posted 28 Jan 2013 Link to this post

    Trying to bind to a collection of objects that encapsulate parameters:
    public Parameter
        string Name;
        object Value;
    these are read dynamically at runtime, and each parameter could be of a different type. The collection (array) is then contained in another class.
    If i bind to an instance of the 'parent' class the parameter collection shows up via the colleciton editor ui, however, the values are not updated on edit.
    Since we are not really interested in the parent object, I have tried binding to the collection directly, but then the only properties I get are the ones from the collection object itself, like Count.
    What am I missing here, what do I need to define/override for the grid to work with these?
    Pointers to example code would be excellent! :)

  2. Ivan Ivanov
    Ivan Ivanov avatar
    1201 posts

    Posted 31 Jan 2013 Link to this post

    Hi Mats,

     May I ask you to send us a repro project so that we would be able to debug it on our side?

    All the best,
    Ivan Ivanov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top