how to do a simple create form using telerik controls

3 posts, 0 answers
  1. KR
    KR avatar
    20 posts
    Member since:
    Apr 2011

    Posted 19 Apr Link to this post


    A beginner to WPF and Telerik controls.

    I have a form with bunch of textbox controls, combobox controls (binding to collection that returns key value pair list by stored procedure), date controls, textarea control and a filedialog. The form has validations for dates controls, textboxes (required fields) etc. This form creates a (single) record in the DB by calling a stored procedure. It doesn't edit ,delete or navigate records. 

    Is RadDataForm an appropriate control to use? If not, what is the appropriate for the above task.

    Also please provide me an example to achieve this.


  2. KR
    KR avatar
    20 posts
    Member since:
    Apr 2011

    Posted 19 Apr Link to this post

    So basically, I do not want to populate data. I just need a create form (empty fields) with a save (or ok) and cancel buttons.
  3. Dilyan Traykov
    Dilyan Traykov avatar
    1021 posts

    Posted 23 Apr Link to this post

    Hi KR,

    If I have understood your requirement correctly, you should be able to achieve the desired result using the RadDataForm control.

    I've prepared a small sample project based on your description which shows how to create a custom EditTemplate for the control and use the EventToCommandBehavior to bind its EditEnded event to a command in the viewmodel which can then invoke the stored procedure.

    Please have a look and let me know if this would work for you or if I have misunderstood your requirement in any way.

    Dilyan Traykov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top