RadDataForm problem

2 posts, 0 answers
  1. Ondrej
    Ondrej avatar
    3 posts
    Member since:
    Apr 2012

    Posted 23 Aug 2012 Link to this post

    Hi I have a RadDataForm which I fill data from Grid. My problem is unabled add button when my collection is empty.Colection is below. Is there any way to solve this?


    private
    ObservableCollection<IGridItemViewModel> items;
            public ObservableCollection<IGridItemViewModel> Items
            {
                get
                {
                    return items;
                }
     
                set
                {
                    if (items != value)
                    {
                        items = value;
                        items.CollectionChanged += items_CollectionChanged;
                    }
                }
            }

    Thak you for helping me
    Ondrej
  2. Yoan
    Admin
    Yoan avatar
    1070 posts

    Posted 28 Aug 2012 Link to this post

    Hi Ondrej,


      In order to resolve your issue you can use real type collection instead using interface. For your convenience I have attached a sample project that shows you how to achieve this.


    Kind regards,
    Yoan
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top