Data Entry Control

13 posts, 0 answers
  1. Dean
    Dean avatar
    43 posts
    Member since:
    Jun 2009

    Posted 14 Dec 2010 Link to this post

    Hi,

    I've done a search on the forums and found nothing about DataForms for WinForms, I know you can go through an Objects properties and build up a set of controls based on the object, but it would be nice if maybe telerik had a dat-entry form control which we could pass one object or a list of objects to it.

    I've been looking around and found this:
    Data-Entry Form
  2. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 20 Dec 2010 Link to this post

    Hello Dean,

    Thank you for this feature request.
     
    In fact, this is an interesting control and I added the request in our Public Issue Tracking System. We will consider implementing it in one of our upcoming releases. Please elaborate a bit more on what exactly you expect from a data entry control. This will help us to shape the new control better.

    I updated your Telerik points for this feature request. If you have any other questions, we will be glad to help.

    All the best, Jack
    the Telerik team
    Check out the Q1 2011 Roadmap for Telerik Controls for Windows Forms.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Dean
    Dean avatar
    43 posts
    Member since:
    Jun 2009

    Posted 20 Dec 2010 Link to this post

    Hi,

    The ability to set a layout for the control (e.g 1,2 or 3 columns) so when the amount of controls exceeds the forms height it will then start adding the remaing controls to the second column if the control's columns is set to 2. Also the ability for the control to read custom attributes from the property of an object. This will then allow the autocreated RadTextBox for instance to have a MaxLengthProperty and also a NullValueProperty. This could then be extented to have the control read off an order attribute in the object to know what controls to add in what order and also validations and error handling.

    Ability for the control to either bind to a single object or a List(Of Objects) allow the user to navigate through the records and do some CRUD Operations. This control would assist with dynamic order forms, data capturing applications can be created quicker and with less code as all you then need is one form with the DataEntryControl.

    Controls it should be able to handle.
    RadTextBox
    RadDateTimePicker (Date)
    RadDateTimePicker (Time with ShowUpDown=True)
    RadSpinButton
    RadCheckBox
    RadRadioButtons
    RadDropDownList

    Nice to have suggestions.
    Ability to autogenerate a grid into the DataEntryControl when a object has a nested object type of IList.

    If you require more information please do not hestitate to ask, this was just off the top of my head but I'm sure other people will be able to suggest a few more things.
  5. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 23 Dec 2010 Link to this post

    Hello Dean,

    Thank you for the nice suggestions. We will definitely take them into account, when we discuss this request. 

    If you have any other ideas in mind, do not hesitate to share them. 

    Best wishes,
    Stefan
    the Telerik team
    Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
  6. Slavcho
    Slavcho avatar
    3 posts
    Member since:
    Mar 2014

    Posted 13 Mar 2014 Link to this post

    Hi,
    I’m posting my question about DataEntry control here because can’t find  another proper topic.
    I have a database object(table) with many properties (columns) and need to bind just some of the properties in a DataEntry control. So my question - is  there a built-in functionality that tells to control to create just few of object properties. I know that I can use some sort of visible property for each item in the control, but if I have many properties (eg 50-60) in a object I’m afraid of some performance issues or memory leakage.
    And also another question – is there a way to replace some of items in control with another e.g.  textbox to be replaced with dropdown with own name/value datasource.
    Thanks in advance!
    Regards,
    Slavcho
  7. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 18 Mar 2014 Link to this post

    Hello Slavcho,

    Thank you for contacting Telerik Support.

    In Q1 2014 we introduced our RadDataEntry control, which provides an easy way to display and edit arbitrary business objects in a form layout. You can determine which properties to be displayed in the RadDataEntry via the Browsable attribute. You can find additional information in our Properties, events and attributes help article (Attributes section).

    As to the question, related to replacing the default editors, our Properties, events and attributes help article (Events section) is quite useful about customizing the default editor.

    I hope this information helps. Should you have further questions, I would be glad to help.

    Regards,
    Desislava
    Telerik
     

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

     
  8. vishal
    vishal avatar
    2 posts
    Member since:
    Aug 2014

    Posted 07 Aug 2014 Link to this post

    Nice post....
  9. Gary
    Gary avatar
    2 posts
    Member since:
    Oct 2014

    Posted 02 Apr 2015 Link to this post

    Too bad there isn't a way to make the height of a control e.g. RadRichTextEditor to be a fixed height. All controls have the same height. Setting the height of the e.Editor doens't do it
  10. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 07 Apr 2015 Link to this post

    Hello Gary,

    Thank you for writing.

    By default, RadDataEntry generates several different editors according to the data type of the property that it should edit. In the Change auto generated editor help article it will be demonstrated how to change default editor with the custom one.

    Items in RadDataEntry can be arranged both at design time and run time. 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. However at run time there is no designer that can be used to arrange them, so to achieve the desired layout the user should use the exposed events or to access the controls from the Controls collection and to change their location, size and etc. You can refer to the Programmatically arrange items help article.

    I hope this information helps. Should you have further questions, I would be glad to help.
     
    Regards,
    Dess
    Telerik
     

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

     
  11. Evgeny Vdovin
    Evgeny Vdovin avatar
    29 posts
    Member since:
    May 2006

    Posted 07 Apr 2015 in reply to Dess 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!

  12. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 10 Apr 2015 Link to this post

    Hi Evgeny,

    Thank you for writing.

    I will post here the solution that I already proposed in your ticket on this topic: The ItemValidating event is fired only for run time generated editors. For design time mode DataEntry only generates a control, adds it to the panels panel and adds a simple data binding to it. So, for design time generated editors you should select them and add an ItemValidating event manually. Please, refer to the attached screen shot.

    I hope this helps.


    Regards,
    Peter
    Telerik
     

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

     
  13. Young
    Young avatar
    1 posts
    Member since:
    Sep 2016

    Posted 13 Sep Link to this post

    Need some help with the rad data entry.I can't save any modification on mysql database.can someone help me !!!!!

     

  14. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 16 Sep Link to this post

    Hello Young,

    Thank you for writing.  

    I have prepared a sample project where RadBindingNavigator and RadDataEntry are bound to directly to the Northwind.Customers table from my local server. I have subscribed to the CurrentItemChanged event of the generated customers BindingSource and save the changes to the database as follows: 
    public Form1()
    {
        InitializeComponent();
     
        this.radBindingNavigator1.BindingSource = this.customersBindingSource;
        this.radDataEntry1.DataSource = this.customersBindingSource;
     
        this.customersBindingSource.CurrentItemChanged += customersBindingSource_CurrentItemChanged;
    }
     
    private void customersBindingSource_CurrentItemChanged(object sender, EventArgs e)
    {
        if (this.customersBindingSource.Current == null)
        {
            return;
        }
        DataRowView dataRowView = this.customersBindingSource.Current as DataRowView;
        if (dataRowView != null)
        {
            DataRow dataRow = dataRowView.Row;
            if (dataRow.RowState == DataRowState.Modified)
            {
                this.customersTableAdapter.Update(dataRow);
            }
        }
    }

    You can refer to the following help article which is quite useful on this topic. Although it is related to RadGridView, you can use a similar approach to save the changes to your database for other controls as well: http://docs.telerik.com/devtools/winforms/gridview/populating-with-data/updating-the-database-with-ado.net

    I hope this information helps. Should you have further questions I would be glad to help.

    Regards,
    Dess
    Telerik by Progress
    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Back to Top
UI for WinForms is Visual Studio 2017 Ready