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

RadButton on DataForm

1 Answer 37 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kakone
Top achievements
Rank 1
Kakone asked on 23 Mar 2010, 10:12 AM
Hello,

I try to replace the standard buttons (Commit, Cancel, ...) on a DataForm with RadButtons. To do this, for example, I set the CommitButtonStyle property like this :
<dataForm:DataForm.CommitButtonStyle>  
  <Style TargetType="ButtonBase">  
    <Setter Property="Template">  
      <Setter.Value>  
        <ControlTemplate TargetType="ButtonBase">  
          <telerik:RadButton x:Name="CommitButton" telerikNavigation:RadWindow.ResponseButton="Accept" Content="{TemplateBinding Content}" />  
        </ControlTemplate>  
      </Setter.Value>  
    </Setter>  
  </Style>  
</dataForm:DataForm.CommitButtonStyle>  

The appareance is good, but the events are not raised. Did you know how can I do this ?

Cordially,
Stephane.

1 Answer, 1 is accepted

Sort by
0
Accepted
Tina Stancheva
Telerik team
answered on 26 Mar 2010, 03:51 PM
Hello St├ęphane Mitermite,

When you change the standard buttons of the DataForm to a RadButton for example, you cannot get the RadButton to listen to the DataForm control methods. Still, if you need you can handle the click event of the RadButton.

Can you please elaborate on the scenario you want to implement, so that we can point you to a better solution?

Please let us know if we can be of further assistance.

Sincerely yours,
Tina Stancheva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Kakone
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or