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

RadDataForm problem

1 Answer 32 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Ondrej
Top achievements
Rank 1
Ondrej asked on 23 Aug 2012, 02:29 PM
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

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 28 Aug 2012, 01:36 PM
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.

Tags
DataForm
Asked by
Ondrej
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or