Forum Xamarin Xamarin.Forms

How to customize sync fusion to have picker

I'm using popLayout inside my schedule so if i press on any cell it will pop up with a 2 pickers or data input then after choosing i can click on the button to post appointment the problem is I couldn't customize my poplayout to function as required how can i do that

Answers

  • Mahesh_MMahesh_M Member ✭✭

    Can you post your code and screenshot of design you want?

  • LandLuLandLu Member, Xamarin Team Xamurai

    You can customize the PopupView's ContentTemplate, put your controls there:

    <sfPopup:SfPopupLayout x:Name="popUpLayout">
        <sfPopup:SfPopupLayout.PopupView>
            <sfPopup:PopupView>
                <sfPopup:PopupView.ContentTemplate>
                    <DataTemplate>
                        <StackLayout>
                            <Picker Title="Choose an item">
                                <Picker.Items>
                                    <x:String>Item1</x:String>
                                    <x:String>Item2</x:String>
                                    <x:String>Item3</x:String>
                                </Picker.Items>
                            </Picker>
                        </StackLayout>
                    </DataTemplate>
                </sfPopup:PopupView.ContentTemplate>
            </sfPopup:PopupView>
        </sfPopup:SfPopupLayout.PopupView>
        <sfPopup:SfPopupLayout.Content>
            <StackLayout x:Name="layout">
                <Button x:Name="clickToShowPopup" Text="ClickToShowPopup" VerticalOptions="Start" HorizontalOptions="FillAndExpand" Clicked="clickToShowPopup_Clicked"/>
            </StackLayout>
        </sfPopup:SfPopupLayout.Content>
    </sfPopup:SfPopupLayout>
    

    Handle the PopupView's AcceptCommand when user click the accept button.

Sign In or Register to comment.