5 Answers, 1 is accepted
If it'll help I did the job using xaml:
CommandButtonsVisibility="{Binding Path=MyCommandButtonVisibility, Source={x:Static Application.Current}}"
In this case the MyCommandButtonVisibility property was defined in app.xaml.cs.
You should be able to modify this to taste.
Here is an example how to set the CommandButtonsVisibility in code behind:
this
.dataForm.CommandButtonsVisibility =
Telerik.Windows.Controls.Data.DataForm.DataFormCommandButtonsVisibility.Commit |
Telerik.Windows.Controls.Data.DataForm.DataFormCommandButtonsVisibility.Cancel;
Regards,
Martin Ivanov
Progress Telerik
Hi Ivanov
is the property CommandButtonsVisibility Bindable? Because I cannot bind it nor convert it in any manner...
Thanks
Gianni.
Hello Gianni,
The CommandButtonsVisibility property of RadDataForm is a DependencyProperty which mean that you can data bind it. I've prepared a small example showing this. I hope this helps.
Regards,
Martin Ivanov
Progress Telerik
Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).