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

Label Provider/DataForm behaviour

8 Answers 27 Views
This is a migrated thread and some comments may be shown as answers.
Mikas
Top achievements
Rank 1
Mikas asked on 18 Oct 2017, 05:26 PM

I am wondering if anyone has seen behavior like this.

I am using MVVM and Prism as well.

Everything appears totally fine and the Provider gives the list of items to select from and works perfectly ... on the first selection.

The remaining selections do not update the form (Set is never called).

If you force a page refresh (change device orientation) everything updates correctly, set is called and you are good again ... for ONE selection.

Then you are back in the same boat.

 

Any help appreciated.

 

 

 

 

 

8 Answers, 1 is accepted

Sort by
0
Mikas
Top achievements
Rank 1
answered on 18 Oct 2017, 07:46 PM

I created a sample program and while doing that discovered a wrinkle.

I created a ticket in your system and attached the sample program.

Mike

0
Nikolay
Telerik team
answered on 23 Oct 2017, 01:43 PM
Hello, Mike,

I can confirm that this is an issue in our DataForm implementation for Android. It seems like the problem is reproducible when the DataForm is nested inside multiple layouts. I have logged a Bug Report in our backlog about this behavior. Here is a link to the public item in our Feedback Portal where you can track the progress on the matter.
 
As a workaround I would suggest setting the VerticalOptions of the outer layout - any value for the VerticalOptions should fix the problem.

I hope I've been helpful.

Regards,
Nikolay
Progress Telerik
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
Craig
Top achievements
Rank 1
answered on 23 Oct 2017, 11:40 PM

Hi Nickolay

Your workaround does not appear to work for me.  I have the following xaml and have I've tried VerticalOptions at all levels as well as individual levels.

Cheers
Craig

<?xml version="1.0" encoding="utf-8" ?>
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:input="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
             xmlns:dataForm="clr-namespace:Telerik.XamarinForms.Input.DataForm;assembly=Telerik.XamarinForms.Input"
             x:Class="ccnz.mobile.Pages.LoanApplication.ExpensesPage">
    <ContentPage.Content>
        <ScrollView VerticalOptions="FillAndExpand">
            <StackLayout VerticalOptions="FillAndExpand">
                <Label Text="Financial Expenses"/>
                <input:RadDataForm x:Name="ExpensesDataForm" Source="{ Binding Expenses }" VerticalOptions="FillAndExpand">
                    <input:RadDataForm.GroupLayoutDefinition>
                        <dataForm:DataFormGroupGridLayoutDefinition />
                    </input:RadDataForm.GroupLayoutDefinition>
                </input:RadDataForm>
                <StackLayout Orientation="Horizontal" Margin="10, 0, 10, 0">
                    <Button Text="Previous" Clicked="PreviousButtonClicked" HorizontalOptions="FillAndExpand" />
                    <Button Text="Next" Clicked="NextButtonClicked" HorizontalOptions="FillAndExpand" />
                </StackLayout>
            </StackLayout>
        </ScrollView>
    </ContentPage.Content>
</ContentPage>
 
0
Mikas
Top achievements
Rank 1
answered on 24 Oct 2017, 12:04 AM

I have a similarly designed form and am finding the same thing.

Mike

0
Nikolay
Telerik team
answered on 26 Oct 2017, 01:12 PM
Hello Mike, Craig,

The bug is already logged at our end. After some further tests it seems that the issue is not present in the following setup:

<ContentPage.Content>
    <ScrollView VerticalOptions="FillAndExpand" HorizontalOptions="CenterAndExpand">
        <StackLayout VerticalOptions="FillAndExpand">
            <Label Text="Financial Expenses"/>
            <input:RadDataForm x:Name="ExpensesDataForm" Source="{ Binding Expenses }" VerticalOptions="FillAndExpand">
                <input:RadDataForm.GroupLayoutDefinition>
                    <dataForm:DataFormGroupGridLayoutDefinition />
                </input:RadDataForm.GroupLayoutDefinition>
            </input:RadDataForm>
            <StackLayout Orientation="Horizontal" Margin="10, 0, 10, 0">
                <Button Text="Previous" Clicked="PreviousButtonClicked" HorizontalOptions="FillAndExpand" />
                <Button Text="Next" Clicked="NextButtonClicked" HorizontalOptions="FillAndExpand" />
            </StackLayout>
        </StackLayout>
    </ScrollView>
</ContentPage.Content>

You can notice that I've added HorizontalOptions="CenterAndExpand" to the outer layout - in your case that is the ScrollView. You can give it a try at your end, however, we have not fully tested it, so it might have some flaws as well.

Regards,
Nikolay
Progress Telerik
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
Mikas
Top achievements
Rank 1
answered on 26 Oct 2017, 06:16 PM

I modified mine to be closer to this new example and I appear to be in much better shape than before.

Thanks Nikolay.

0
Craig
Top achievements
Rank 1
answered on 27 Oct 2017, 02:46 AM

Thanks Nickolay.  My data form appears to be behaving itself now too.

Cheers
Craig

0
Nikolay
Telerik team
answered on 30 Oct 2017, 03:24 PM
Hello Mike, Craig,

I am glad to see that the provided solution works for you. If you need some additional information do not hesitate to write back.

Regards,
Nikolay
Progress Telerik
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
Asked by
Mikas
Top achievements
Rank 1
Answers by
Mikas
Top achievements
Rank 1
Nikolay
Telerik team
Craig
Top achievements
Rank 1
Share this question
or