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

Question about using RadDataForm to edit grid data like a popup.

3 Answers 122 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 09 Oct 2017, 08:42 PM

I found an example of using RadDataForm like a popup on these forums.  Is there a way to add a button in the upper right to cancel and close the popup?

It looks as if in the ERP example you are really placing the DataForm in a new window (RadWindow) to accomplish this.  Is that the only way or is there an easier way to make this happen?

Thanks..

3 Answers, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 12 Oct 2017, 11:11 AM
Hello David,

To achieve the desired result you can modify the control template of the RadDataForm control and introduce a button in a location of your choice. You should then bind this button's Command to the RadDataFormCommands.CancelEdit as can be observed in the PART_CancelButton definition.

<telerik:RadButton x:Name="PART_CancelButton"
        MinWidth="48"
        MinHeight="20"
        Margin="2 4 4 4"
        Content="{TemplateBinding CancelButtonContent}"
        Command="{x:Static controls:RadDataFormCommands.CancelEdit}"/>

Note, however, that you will still need to close the popup or collapse the RadDataForm in the EditEnded event similarly to the approach suggested in this blog post.

I hope you find this helpful. If you need any further assistance, please let me know.

Regards,
Dilyan Traykov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
0
David
Top achievements
Rank 1
answered on 12 Oct 2017, 04:55 PM
Thank you.  I will try that...
0
Dilyan Traykov
Telerik team
answered on 13 Oct 2017, 08:58 AM
Hello David,

Do let me know once you manage to test this out. I look forward to your reply.

Regards,
Dilyan Traykov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
Tags
DataForm
Asked by
David
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
David
Top achievements
Rank 1
Share this question
or