Custom DataEntry Form

9 posts, 0 answers
  1. Damian
    Damian avatar
    8 posts
    Member since:
    Nov 2014

    Posted 05 Apr 2015 Link to this post

    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

  2. Dimitar
    Admin
    Dimitar avatar
    1408 posts

    Posted 06 Apr 2015 Link to this post

    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.

     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Evgeny Vdovin
    Evgeny Vdovin avatar
    29 posts
    Member since:
    May 2006

    Posted 07 Apr 2015 in reply to Dimitar Link to this post

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

    Any ideas?

    Thanks in advance!

  5. Damian
    Damian avatar
    8 posts
    Member since:
    Nov 2014

    Posted 07 Apr 2015 Link to this post

    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

  6. Damian
    Damian avatar
    8 posts
    Member since:
    Nov 2014

    Posted 07 Apr 2015 Link to this post

    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

  7. Damian
    Damian avatar
    8 posts
    Member since:
    Nov 2014

    Posted 08 Apr 2015 Link to this post

    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 );

  8. Dimitar
    Admin
    Dimitar avatar
    1408 posts

    Posted 09 Apr 2015 Link to this post

    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.

     
  9. w
    w avatar
    26 posts
    Member since:
    Feb 2009

    Posted 11 Mar Link to this post

    Is the Custom Control support GridView or RadGrid?  how RadDataEntry can achive the Master-Detail scenario?
  10. Dimitar
    Admin
    Dimitar avatar
    1408 posts

    Posted 11 Mar Link to this post

    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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready