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
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
12 Answers, 1 is accepted
0
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
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.
0
Dean
Top achievements
Rank 2
answered on 20 Dec 2010, 02:18 PM
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.
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.
0
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
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
0
Slavcho
Top achievements
Rank 1
answered on 13 Mar 2014, 02:31 PM
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
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
0
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
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.
0
vishal
Top achievements
Rank 1
answered on 07 Aug 2014, 10:01 AM
Nice post....
0
Gary
Top achievements
Rank 2
answered on 02 Apr 2015, 12:16 PM
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
0
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
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.
Dess
Telerik
See What's Next in App Development. Register for TelerikNEXT.
0
Evgeny Vdovin
Top achievements
Rank 1
answered on 07 Apr 2015, 06:49 PM
I have designed the custom data entry form in VS, but validation not working any more.
Any ideas?
Thanks in advance!
0
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
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.
0
Young
Top achievements
Rank 1
answered on 13 Sep 2016, 02:45 PM
Need some help with the rad data entry.I can't save any modification on mysql database.can someone help me !!!!!
0
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:
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 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
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 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.