RadDataForm inside StackLayout

3 posts, 1 answers
  1. Andy
    Andy avatar
    2 posts
    Member since:
    Feb 2011

    Posted 23 Mar 2017 Link to this post

    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. Answer
    Lance | Manager - Technical Support
    Admin
    Lance | Manager - Technical Support avatar
    1112 posts

    Posted 23 Mar 2017 Link to this post

    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
  3. Andy
    Andy avatar
    2 posts
    Member since:
    Feb 2011

    Posted 23 Mar 2017 in reply to Lance | Manager - Technical Support Link to this post

    That makes sense

    Many thanks

    Andy

     

Back to Top