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

No "Create New Method" support?

6 Answers 75 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 2
Kevin asked on 06 Nov 2014, 09:56 PM
I'm testing the RadDataForm control and I've noticed that it doesn't offer the intellisense for binding methods such as SelectMethod, UpdateMethod, InsertMethod, etc... yet the control does support the functionality of these.  This is confusing and am wondering if this control is fully compatible with .NET 4.5 webform binding scenarios.

6 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 11 Nov 2014, 01:00 PM
Hi Kevin,

The RadDataForm control supports ModelBinding. In order to use it you need to set the SelectMethod property to the name of the method that would be used to retrieve the data. If you would like additional information on how you can use ModelBinding and strongly typed data with RadDataForm check out the following article:


Note that the SelectMethod, UpdateMethod, InsertMethod, DeleteMethod are properties. They should be set to a sting value.

The functionality you describe is available for the events of the control. For example ,when you add OnItemUpdating in the markup, the IntelliSense will give you the option to create an event handler automatically.

Regards,
Viktor Tachev
Telerik
0
Kevin
Top achievements
Rank 2
answered on 26 Nov 2014, 07:06 PM
Hi Viktor, I don't think I was clear enough with my question.
I've noticed a possible bug with the control.  Specifically, when working in the XAML and one types ' SelectMethod="" ', the control does not offer the usual "Create New Method" as other controls offer.  The control will offer this for other events such as OnItemCancelling, but the lacking of functionality appears to be with the all the model binding methods:
SelectMethod, DeleteMethod, UpdateMethod, etc.

Hopefully this makes more sense now.

Cheers.
0
Kevin
Top achievements
Rank 2
answered on 26 Nov 2014, 08:21 PM
Just to add, I'm talking specifically about the support of the auto-creation for the method stub in the code behind.
0
Viktor Tachev
Telerik team
answered on 01 Dec 2014, 12:33 PM
Hi Kevin,

The behavior you are describing is caused because IntelliSense needs a special attribute in order to provide the option for creating a method. I have notified the developers and they will investigate why the option is not provided for the RadDataForm control.

As a token of gratitude for reporting the behavior yo us your Telerik points have been updated.

Regards,
Viktor Tachev
Telerik
0
David
Top achievements
Rank 1
answered on 16 Nov 2015, 07:26 PM
This issue still exists. No intelligence 'create method' for object bound dataforms.
0
Viktor Tachev
Telerik team
answered on 17 Nov 2015, 10:00 AM
Hello David,

I am afraid that the feature was not included in the last planning. The developers will research the feature and consider it for implementation in a future release.

Regards,
Viktor Tachev
Telerik
Tags
DataForm
Asked by
Kevin
Top achievements
Rank 2
Answers by
Viktor Tachev
Telerik team
Kevin
Top achievements
Rank 2
David
Top achievements
Rank 1
Share this question
or