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

4 posts, 0 answers
  1. David
    David avatar
    8 posts
    Member since:
    Oct 2017

    Posted 09 Oct Link to this post

    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..

  2. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    634 posts

    Posted 12 Oct Link to this post

    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 allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. David
    David avatar
    8 posts
    Member since:
    Oct 2017

    Posted 12 Oct in reply to Dilyan Traykov Link to this post

    Thank you.  I will try that...
  4. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    634 posts

    Posted 13 Oct Link to this post

    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 allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top