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

Property event

5 Answers 68 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Atanas Stoev
Top achievements
Rank 1
Atanas Stoev asked on 30 Sep 2016, 03:46 PM
Is it possible to assign event of property? I want, when I select editor, to load new View.

5 Answers, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 05 Oct 2016, 02:34 PM
Hello Atanas,

Thank you for contacting us.

Could you please elaborate a bit more on your scenario? If I understand you correctly, you would like to edit a property in an external view. For example the editor should be a button that redirects to another page where the user could set the property value and then go back to the original page with the data form. Is this the desired scenario?

I look forward to your reply.

Regards,
Rosy Topchiyska
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
Atanas Stoev
Top achievements
Rank 1
answered on 05 Oct 2016, 02:54 PM
Exactly. You have correctly understood me. Property will be completed by another page with more complex functionality.
0
Rosy Topchiyska
Telerik team
answered on 10 Oct 2016, 03:23 PM
Hello Atanas,

This scenario is not supported at this moment. In this case we suggest to our users to add external button to do the job. Also, please note that any uncommitted changes will be lost when the user redirects to another page. I have logged a feature request in our feedback portal where our community can vote for it.

Please, let us know if you have any other questions.

Regards,
Rosy Topchiyska
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
Chris
Top achievements
Rank 1
answered on 24 Mar 2017, 09:12 PM

Question, How would you handle a select list returning a selected item? Or is that currently not supported?

To give you an example:

XAML :

<StackLayout >
               <StackLayout.GestureRecognizers>
                   <TapGestureRecognizer Tapped="Airlines_Tapped"/>
               </StackLayout.GestureRecognizers>
               <Label Text="Airline"></Label>
               <Label x:Name="airlineName" Text="{Binding AirlineName }" ></Label>
           </StackLayout>

Code behind:

private void Airlines_Tapped(object sender, EventArgs e)
        {
            var page = new Airlines();
            var app = Application.Current as App;
            page.AirlineList.ItemSelected += (source, args) =>
            {
                app.AirlineName = args.SelectedItem.ToString();
                airlineName.Text = app.AirlineName.ToString();
                Navigation.PopAsync();
            };
            Navigation.PushAsync(page);
        }

Where the airlines page is a simple list of airlines.

How would you accomplish this with the dataform controls?

0
Rosy Topchiyska
Telerik team
answered on 29 Mar 2017, 02:56 PM
Hello Chris,

You can read more about RadListView selection functionality here. The RadListView also supports ItemTapped event that you can use if your scenario does not require visual selection.

Please, let us know if you have further questions.

Regards,
Rosy Topchiyska
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
Tags
DataForm
Asked by
Atanas Stoev
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Atanas Stoev
Top achievements
Rank 1
Chris
Top achievements
Rank 1
Share this question
or