No "Create New Method" support?

7 posts, 0 answers
  1. Kevin
    Kevin avatar
    9 posts
    Member since:
    Nov 2014

    Posted 06 Nov 2014 Link to this post

    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.
  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 11 Nov 2014 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kevin
    Kevin avatar
    9 posts
    Member since:
    Nov 2014

    Posted 26 Nov 2014 in reply to Viktor Tachev Link to this post

    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.
  5. Kevin
    Kevin avatar
    9 posts
    Member since:
    Nov 2014

    Posted 26 Nov 2014 in reply to Kevin Link to this post

    Just to add, I'm talking specifically about the support of the auto-creation for the method stub in the code behind.
  6. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 01 Dec 2014 Link to this post

    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
  7. David
    David avatar
    37 posts
    Member since:
    Aug 2014

    Posted 16 Nov 2015 Link to this post

    This issue still exists. No intelligence 'create method' for object bound dataforms.
  8. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 17 Nov 2015 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017