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

Custom DataEntry Form

8 Answers 274 Views
DataEntry
This is a migrated thread and some comments may be shown as answers.
Damian
Top achievements
Rank 1
Damian asked on 05 Apr 2015, 06:01 AM

Hi,

Just wanted to see what options I had for a custom data entry form.

I have a radDataEntry control working with a BindingNavigator, but is there a way for me to design a form with the control/layout I want and connect that to the BindingNavigator so all the populate/save functionality is there, just with my custom UI?

Cheers,

Damian

8 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 06 Apr 2015, 12:53 PM
Hello Damian,

Thank you for writing back.

If you want to create custom layout you will need to bind each control to the binding source separately. RadDataEntry allows you to reorder/resize the controls programmatically which I think will be the easier approach in this case: Programmatically arrange items. You can change the editors as well: Change auto generated editor.

Please let me know if there is something else I can help you with. 
 
Regards,
Dimitar
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Evgeny Vdovin
Top achievements
Rank 1
answered on 07 Apr 2015, 07:00 PM

I have designed the custom data entry form in VS, but validation not working any more.

Any ideas?

Thanks in advance!

0
Damian
Top achievements
Rank 1
answered on 08 Apr 2015, 12:16 AM

Thanks Dimitar,

 What is the syntax for binding a control (e.g. a RadTextBoxControl) to a BindingSource?

i.e. for the radDataeEntry control I use .DataSource and for the radBindingNavigator, .BindingSource

 Thanks,
Damian

0
Damian
Top achievements
Rank 1
answered on 08 Apr 2015, 04:38 AM

I also noticed that in the help page for the DataEntry object it states: At design time users can use the designer to arrange
the items according to their needs by drag and drop or by setting the desired properties of the items
.

I cant see how that is done though? Adding the DataEntry control to my form simply adds a empty bounding box/control, so how would I arange the objects at design time?

 Thanks,
Damian

0
Damian
Top achievements
Rank 1
answered on 09 Apr 2015, 01:18 AM

Answered via a support ticket - posting resolution for those that happen across this post :)

 

As to the question at hand, note that you can bind RadDataEntry at design time by setting its DataSource property.
It will automatically generate default editors. You are free to replace
a specific editor with a new control by dragging the desired control
from the Toolbox and dropping it onto the PanelContainer inside the RadDataEntry.
However, you need to match the new editor with the corresponding
property. If you look at the designer file you will notice that the
automatically generated editors use simple data-binding for managing the respective property coming from the DataSource. You can follow similar approach. Here is an example how to bind a RadMaskedEditBox to the Phone property of a customer:

this.radMaskedEditBox1.DataBindings.Add("Text", this.customersBindingSource, "Phone", true, DataSourceUpdateMode.OnPropertyChanged );

0
Dimitar
Telerik team
answered on 09 Apr 2015, 12:55 PM
Hi,

@Evegni - I am not sure why the validation is not working on your side. This is why I want to kindly ask you to open a support ticket for this. Perhaps you can attach a small sample project to show us the issue.

@Damian -  I am glad that you have found a solution for your case. Do not hesitate to contact us if you have other questions.

Regards,
Dimitar
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
w
Top achievements
Rank 1
answered on 11 Mar 2016, 06:40 AM
Is the Custom Control support GridView or RadGrid?  how RadDataEntry can achive the Master-Detail scenario?
0
Dimitar
Telerik team
answered on 11 Mar 2016, 11:49 AM
Hi,

Thank you for writing.

You cannot have a hierarchy in RadDataEntry, for this, you can use RadGridView. Detailed information is available here: Binding to Hierarchical Data.

Please let me know if there is something else I can help you with. 
 
Regards,
Dimitar
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
DataEntry
Asked by
Damian
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Evgeny Vdovin
Top achievements
Rank 1
Damian
Top achievements
Rank 1
w
Top achievements
Rank 1
Share this question
or