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

how to do a simple create form using telerik controls

2 Answers 62 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
KR
Top achievements
Rank 1
Veteran
KR asked on 19 Apr 2019, 08:37 PM

Hi,

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.

Thanks.

2 Answers, 1 is accepted

Sort by
0
KR
Top achievements
Rank 1
Veteran
answered on 19 Apr 2019, 08:42 PM
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.
0
Dilyan Traykov
Telerik team
answered on 23 Apr 2019, 10:17 AM
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.

Regards,
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.
Tags
DataForm
Asked by
KR
Top achievements
Rank 1
Veteran
Answers by
KR
Top achievements
Rank 1
Veteran
Dilyan Traykov
Telerik team
Share this question
or