Custom "Add new item" command

3 posts, 0 answers
  1. Viktor
    Viktor avatar
    2 posts
    Member since:
    Apr 2011

    Posted 28 May 2012 Link to this post

    Hi,

    Is there a way to change//bind the default Add command without modifying RadDataForm's template? I need to control when the button is enabled/disabled, and provide some additional logic as well.

    Thanks.

    Best regards
    Viktor
  2. Tomas
    Tomas avatar
    21 posts
    Member since:
    Sep 2010

    Posted 01 Jun 2012 Link to this post

    Hello,

    We're experiencing a similar problem, we need more control to the Add button. It would be great if dataform could expose those 3 button (New, Edit, Delete) for customization. Is there any way to do that?

    Tomas
  3. UI for WPF is Visual Studio 2017 Ready
  4. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1128 posts

    Posted 01 Jun 2012 Link to this post

    Hello Guys,

    Currently there is no easy way to change these buttons' commands through the API. You can either modify RadDataForm's template, in order to bind them to your commands, or use an event-to-command approach if it is possible. However, recently we have had several similar client inquiries, so that we are determined to introduce some improvements on this in the close future.

    Kind regards,
    Ivan Ivanov
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top