This is a migrated thread and some comments may be shown as answers.
RadDataForm inside StackLayout
2 Answers 12 Views
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 23 Mar 2017, 11:46 AM

Hi

I'm looking to place the RadDataForm inside a StackLayout as I want to be part of a page on my app, rather than the whole.

However when I add my dataForm to the StackLayout, it isn't displayed at all

I'm trying this ...

            var layout = new StackLayout();
            _dataForm = new RadDataForm();
            _dataForm.Source = new Login();

            layout.Children.Add(_dataForm);
            Content = layout;

If anyone could point out what I'm doing wrong, I'd be most grateful.

Thanks

Andy

2 Answers, 1 is accepted

Sort by
0
Accepted
Lance | Manager Technical Support
Telerik team
answered on 23 Mar 2017, 07:46 PM
Hi Andy,

You can't use a layout component that has an infinite measured edge (e.g. StackLayout) for the RadDataForm (and other controls that have dynamic child elements, like RadListView).

If you switch to GridLayout, it will work as expected.

Let us know if you have any further questions or concerns

Regards,
Lance | Tech Support Engineer, Sr.
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Andy
Top achievements
Rank 1
answered on 23 Mar 2017, 09:19 PM

That makes sense

Many thanks

Andy

 

Asked by
Andy
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
Andy
Top achievements
Rank 1
Share this question
or