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

Custom "Add new item" command

2 Answers 102 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Viktor
Top achievements
Rank 1
Viktor asked on 28 May 2012, 04:45 PM
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 Answers, 1 is accepted

Sort by
0
Tomas
Top achievements
Rank 1
answered on 01 Jun 2012, 10:03 AM
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
0
Ivan Ivanov
Telerik team
answered on 01 Jun 2012, 12:45 PM
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 >>
Tags
DataForm
Asked by
Viktor
Top achievements
Rank 1
Answers by
Tomas
Top achievements
Rank 1
Ivan Ivanov
Telerik team
Share this question
or