Open Dataform in Edit Mode?

5 posts, 0 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 14 May 2013 Link to this post

    Hi,

    i use a RadDataForm in a DialogWindow. I want to open the Dialog, bind the ItemSource on the Dataform and now
    I want to get the DataForm in Edit Mode.

    I tried AutoEdit="true" this will open my DataForm in EditMode, but on click on the OK Button the DataForm ist still
    in Edit Mode!

    How can I open the DataForm in Edit mode?

    Thanks
    Best Regards
    Rene
  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1128 posts

    Posted 17 May 2013 Link to this post

    Hi,

     Can you please try invoking its BeginEdit method through Dispatcher.BeginInvoke, on its Loaded event?

    Regards,
    Ivan Ivanov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 22 May 2013 Link to this post

    Hi,

    i tried, but without any success.

    thanks
    best Regards
    Rene
  5. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1128 posts

    Posted 22 May 2013 Link to this post

    Hello,

    Well, I have tested it on my side and it definitely works. May, I ask you to send us a repro project that illustrates the behavior that you have experienced? It might be some scenario-specific problem.

    Regards,
    Ivan Ivanov
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 23 May 2013 Link to this post

    Hello,

    i'm sorry Problem solved, the Syntax was wrong!

    UserControl Loaded Event:
    Dispatcher.BeginInvoke((Action)(() =>
    {
          KundenForm.BeginEdit();
    }));

    Thanks
    Best Regard
Back to Top
UI for WPF is Visual Studio 2017 Ready